@@ -10,7 +10,7 @@ export function fetchLogin(data: object) {
/** Get user info */
export function fetchGetUserInfo() {
- return request<Api.Auth.UserInfo>({ url: '/api/v1/getinfo' });
+ return request({ url: '/api/v1/getinfo' });
}
/** Get Code demo */
@@ -114,7 +114,8 @@ export const useAuthStore = defineStore(SetupStoreId.Auth, () => {
async function getUserInfo() {
const {
- data: { data: info, error }
+ data: { data: info },
+ error
} = await fetchGetUserInfo();
if (!error) {