|
|
@@ -42,8 +42,8 @@
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
import { shallowRef, onMounted, onUnmounted } from 'vue'
|
|
|
-import { FormInstance, Button, Field, CellGroup, Form, Checkbox, showFailToast, showSuccessToast, showToast } from 'vant'
|
|
|
-import { fullloading } from '@/utils/vant'
|
|
|
+import { FormInstance, Button, Field, CellGroup, Form, Checkbox, showFailToast, showToast } from 'vant'
|
|
|
+import { fullloading, dialog } from '@/utils/vant'
|
|
|
import { useLogin } from '@/business/login'
|
|
|
import { useNavigation } from '@mobile/router/navigation'
|
|
|
import service from '@/services'
|
|
|
@@ -88,8 +88,10 @@ const formSubmit = () => {
|
|
|
userLogin().then((forcedPasswordChange) => {
|
|
|
hideLoading()
|
|
|
if (forcedPasswordChange) {
|
|
|
- setGlobalUrlParams({ forcedPasswordChange })
|
|
|
- routerTo('user-password', true)
|
|
|
+ dialog('为了您的账户安全,请修改密码!').then(() => {
|
|
|
+ setGlobalUrlParams({ forcedPasswordChange })
|
|
|
+ routerTo('user-password', true)
|
|
|
+ })
|
|
|
} else {
|
|
|
routerBack()
|
|
|
}
|