From a060c92bb9d0bef1b574d3362fdb39a65f262949 Mon Sep 17 00:00:00 2001 From: fangyunong Date: Sun, 6 Jul 2025 20:45:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=9B=B4=E6=96=B0=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auto-imports.d.ts | 1 + src/api/userApi.ts | 15 ++- src/components/Ls-UI/LsEmpty.vue | 3 +- src/components/Ls-UI/LsLogo.vue | 50 ++++++++ src/router/index.ts | 18 +++ src/utils/request.ts | 12 +- src/views/layout/components/LayoutHeader.vue | 40 +----- src/views/layout/components/LayoutNav.vue | 37 +++++- src/views/login/OauthCallBack.vue | 11 +- src/views/login/Register.vue | 128 +++++++++++++++++++ src/views/system/dict/index.vue | 19 +++ src/views/system/globalSys/index.vue | 20 +++ 12 files changed, 298 insertions(+), 56 deletions(-) create mode 100644 src/components/Ls-UI/LsLogo.vue create mode 100644 src/views/login/Register.vue create mode 100644 src/views/system/dict/index.vue create mode 100644 src/views/system/globalSys/index.vue diff --git a/auto-imports.d.ts b/auto-imports.d.ts index 5d39540..bafbb67 100644 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -15,6 +15,7 @@ declare global { const effectScope: typeof import('vue')['effectScope'] const getCurrentInstance: typeof import('vue')['getCurrentInstance'] const getCurrentScope: typeof import('vue')['getCurrentScope'] + const getUserInfo: typeof import('./src/api/userApi')['getUserInfo'] const h: typeof import('vue')['h'] const inject: typeof import('vue')['inject'] const isNewUser: typeof import('./src/api/userApi')['isNewUser'] diff --git a/src/api/userApi.ts b/src/api/userApi.ts index 20e6f0f..75ad2ff 100644 --- a/src/api/userApi.ts +++ b/src/api/userApi.ts @@ -1,10 +1,17 @@ import http from "@/utils/request"; -//demo +//是否第一次注册 export const isNewUser = () => { + return http({ + url: "/api/UserInfo/IsNewUser", + method: "GET", + }); +}; + +// 获取用户信息 +export const getUserInfo = () => { return http({ - url:'/api/UserInfo/IsNewUser', + url:'/api/UserInfo/My', method:'GET' }) -} - +}; diff --git a/src/components/Ls-UI/LsEmpty.vue b/src/components/Ls-UI/LsEmpty.vue index 5032221..d0d12b9 100644 --- a/src/components/Ls-UI/LsEmpty.vue +++ b/src/components/Ls-UI/LsEmpty.vue @@ -1,3 +1,4 @@ +