refactor: clean up formatting and whitespace in ForgotPassword.vue and routes.ts
This commit is contained in:
parent
d7a3b7fd3f
commit
2cbd8af6ad
@ -1,4 +1,5 @@
|
|||||||
import type {RouteRecordRaw} from 'vue-router'
|
import type {RouteRecordRaw} from 'vue-router'
|
||||||
|
|
||||||
const modules: any = import.meta.glob('./modules/*.ts', {eager: true})
|
const modules: any = import.meta.glob('./modules/*.ts', {eager: true})
|
||||||
|
|
||||||
const rolesRoutes: RouteRecordRaw[] = [...Object.keys(modules).map((key) => modules[key].default)]
|
const rolesRoutes: RouteRecordRaw[] = [...Object.keys(modules).map((key) => modules[key].default)]
|
||||||
|
|||||||
@ -117,7 +117,7 @@ const checkCode = () => {
|
|||||||
resetPasswordFormRef.value
|
resetPasswordFormRef.value
|
||||||
?.validate()
|
?.validate()
|
||||||
.then(() => UserApi.checkCode(CheckEmailForm.value, sendLoading))
|
.then(() => UserApi.checkCode(CheckEmailForm.value, sendLoading))
|
||||||
.then(() => router.push({ name: 'reset_password', params: CheckEmailForm.value }))
|
.then(() => router.push({name: 'ResetPassword', params: CheckEmailForm.value}))
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 发送验证码
|
* 发送验证码
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user