refactor: clean up formatting and whitespace in ForgotPassword.vue and routes.ts

This commit is contained in:
wxg0103 2025-07-11 18:49:00 +08:00
parent d7a3b7fd3f
commit 2cbd8af6ad
2 changed files with 14 additions and 13 deletions

View File

@ -1,4 +1,5 @@
import type {RouteRecordRaw} from 'vue-router'
const modules: any = import.meta.glob('./modules/*.ts', {eager: true})
const rolesRoutes: RouteRecordRaw[] = [...Object.keys(modules).map((key) => modules[key].default)]

View File

@ -117,7 +117,7 @@ const checkCode = () => {
resetPasswordFormRef.value
?.validate()
.then(() => UserApi.checkCode(CheckEmailForm.value, sendLoading))
.then(() => router.push({ name: 'reset_password', params: CheckEmailForm.value }))
.then(() => router.push({name: 'ResetPassword', params: CheckEmailForm.value}))
}
/**
* 发送验证码