feat: 项目多标签方案调整
This commit is contained in:
@@ -127,6 +127,7 @@ const getVerifyCode = async () => {
|
||||
|
||||
onMounted(() => getVerifyCode())
|
||||
|
||||
const router = useRouter()
|
||||
const formRef = ref()
|
||||
const onSubmit = async () => {
|
||||
const valid = await formRef.value.validate().catch(() => { }); // 表单校验
|
||||
@@ -136,7 +137,7 @@ const onSubmit = async () => {
|
||||
|
||||
try {
|
||||
userStore.login(form).then(() => {
|
||||
window.api.app.loadPage('index');
|
||||
router.push({ path: '/home' })
|
||||
})
|
||||
} finally {
|
||||
getVerifyCode()
|
||||
|
||||
Reference in New Issue
Block a user