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 @@ +