2
0

fix:注册界面及相关功能

This commit is contained in:
zhongzm
2024-11-29 09:04:06 +08:00
parent a3a6aeb40e
commit 650a180778
10 changed files with 222 additions and 33 deletions

14
src/typings/api.d.ts vendored
View File

@@ -138,6 +138,20 @@ declare namespace Api {
uuid: string;
authType: string;
}
interface RegisterBody{
username: string;
password: string;
authType:string;
email: string;
fullName: string;
age: number;
address: string;
sex: string;
phonenumber: string;
}
interface EmailCaptcha{
email:string;
}
}
/**

View File

@@ -358,6 +358,7 @@ declare namespace App {
back: string;
validateSuccess: string;
loginSuccess: string;
registerSuccess: string;
welcomeBack: string;
checkCode: string;
};

View File

@@ -20,6 +20,7 @@ declare global {
const beforeAll: typeof import('vitest')['beforeAll']
const beforeEach: typeof import('vitest')['beforeEach']
const chai: typeof import('vitest')['chai']
const checkReport: typeof import('../service/api/auth')['checkReport']
const clearAuthStorage: typeof import('../store/modules/auth/shared')['clearAuthStorage']
const cloneDeep: typeof import('lodash-es')['cloneDeep']
const computed: typeof import('vue')['computed']
@@ -96,6 +97,7 @@ declare global {
const fetchIsRouteExist: typeof import('../service/api/route')['fetchIsRouteExist']
const fetchLogin: typeof import('../service/api/auth')['fetchLogin']
const fetchRefreshToken: typeof import('../service/api/auth')['fetchRefreshToken']
const fetchRegister: typeof import('../service/api/auth')['fetchRegister']
const filterAuthRoutesByRoles: typeof import('../store/modules/route/shared')['filterAuthRoutesByRoles']
const filterTabsById: typeof import('../store/modules/tab/shared')['filterTabsById']
const filterTabsByIds: typeof import('../store/modules/tab/shared')['filterTabsByIds']
@@ -182,6 +184,7 @@ declare global {
const resolveComponent: typeof import('vue')['resolveComponent']
const resolveRef: typeof import('@vueuse/core')['resolveRef']
const resolveUnref: typeof import('@vueuse/core')['resolveUnref']
const sendCaptcha: typeof import('../service/api/auth')['sendCaptcha']
const sessionStg: typeof import('../utils/storage')['sessionStg']
const setActivePinia: typeof import('pinia')['setActivePinia']
const setMapStoreSuffix: typeof import('pinia')['setMapStoreSuffix']

View File

@@ -13,6 +13,7 @@ declare module 'vue' {
ACard: typeof import('ant-design-vue/es')['Card']
ACheckbox: typeof import('ant-design-vue/es')['Checkbox']
ACol: typeof import('ant-design-vue/es')['Col']
ADatePicker: typeof import('ant-design-vue/es')['DatePicker']
ADescriptions: typeof import('ant-design-vue/es')['Descriptions']
ADescriptionsItem: typeof import('ant-design-vue/es')['DescriptionsItem']
ADivider: typeof import('ant-design-vue/es')['Divider']