diff --git a/auto-imports.d.ts b/auto-imports.d.ts new file mode 100644 index 0000000..76e1ee6 --- /dev/null +++ b/auto-imports.d.ts @@ -0,0 +1,10 @@ +/* eslint-disable */ +/* prettier-ignore */ +// @ts-nocheck +// noinspection JSUnusedGlobalSymbols +// Generated by unplugin-auto-import +// biome-ignore lint: disable +export {} +declare global { + const ElMessage: typeof import('element-plus/es')['ElMessage'] +} diff --git a/components.d.ts b/components.d.ts new file mode 100644 index 0000000..b520246 --- /dev/null +++ b/components.d.ts @@ -0,0 +1,22 @@ +/* eslint-disable */ +// @ts-nocheck +// Generated by unplugin-vue-components +// Read more: https://github.com/vuejs/core/pull/3399 +// biome-ignore lint: disable +export {} + +/* prettier-ignore */ +declare module 'vue' { + export interface GlobalComponents { + BackgroundAnimation: typeof import('./src/components/BackgroundAnimation.vue')['default'] + CvCard: typeof import('./src/components/CvCard.vue')['default'] + ElButton: typeof import('element-plus/es')['ElButton'] + ElForm: typeof import('element-plus/es')['ElForm'] + ElFormItem: typeof import('element-plus/es')['ElFormItem'] + ElInput: typeof import('element-plus/es')['ElInput'] + RouterLink: typeof import('vue-router')['RouterLink'] + RouterView: typeof import('vue-router')['RouterView'] + SingleSelect: typeof import('./src/components/SingleSelect.vue')['default'] + ToggleSwitch: typeof import('./src/components/ToggleSwitch.vue')['default'] + } +} diff --git a/cp-resume b/cp-resume deleted file mode 160000 index b54cbdf..0000000 --- a/cp-resume +++ /dev/null @@ -1 +0,0 @@ -Subproject commit b54cbdf6424cf731371c9e2d6cf407923ff902f3 diff --git a/index.html b/index.html index 6d17011..2f61f76 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - + @@ -17,9 +17,9 @@ -
- - + - - - diff --git a/src/api/user.ts b/src/api/user.ts index d8f3c6a..19ff3ef 100644 --- a/src/api/user.ts +++ b/src/api/user.ts @@ -2,14 +2,14 @@ import request from '@/utils/request.ts' // 用户登录 export const userLogin = (userName: string, userPassword: string) => { - return request.post('/api/auth/login',{ + return request.post('/api/auth/login', { userName, userPassword, }) } // 用户注册 /api/usercenter -export const userRegister = (userName: string, userEmail: string, userPassword: string, confirmPassword:string) => { +export const userRegister = (userName: string, userEmail: string, userPassword: string, confirmPassword: string) => { return request.post('/api/usercenter', { userEmail, userName, @@ -18,11 +18,23 @@ export const userRegister = (userName: string, userEmail: string, userPassword: }) } -// 用户信息 -export const getUserInfoApi = (id:string) => { +// 获取用户信息 +export const getUserInfoApi = (id: string) => { return request.get(`/api/usercenter/${id}`) } +// 关于用户更新的插槽 +export interface userInfoUpdate { + userName: string, + userPhoneNumber: string, + userEmail: string +} + +// 更新用户信息 +export const userUpdate = (id: string, data: userInfoUpdate) => { + return request.patch(`/api/usercenter/${id}`, data) +} + // 验证 token export const verifyToken = () => { return request.get('/api/auth/profile') diff --git a/src/components/CvCard.vue b/src/components/CvCard.vue index 70662dc..063993c 100644 --- a/src/components/CvCard.vue +++ b/src/components/CvCard.vue @@ -1,6 +1,5 @@