diff --git a/src/api/user.ts b/src/api/user.ts index 9ae67b9..eb882b0 100644 --- a/src/api/user.ts +++ b/src/api/user.ts @@ -22,11 +22,7 @@ export interface IUserRole { } export async function getMyInfo(): Promise { - const rs = await post('/user/myInfo') - if (rs.avatar && !/^((https?|data):|\/\/)/.test(rs.avatar)) { - rs.avatar = `${baseUrl}/api/user/avatar?id=${rs.id}` - } - return rs + return post('/user/myInfo') } export async function getMyRole(): Promise { diff --git a/src/layout/default/app-main/component/Debugger.vue b/src/layout/default/app-main/component/Debugger.vue index a61ad41..a3334c0 100644 --- a/src/layout/default/app-main/component/Debugger.vue +++ b/src/layout/default/app-main/component/Debugger.vue @@ -10,32 +10,6 @@

显示页面布局网格

-
-

消息面板

-
-

始终显示消息面板

- -
-
-

页面变更时打印间隔消息

- -
-
-

网络

-
-

打印网络请求至消息面板

- -
-
@@ -48,7 +22,7 @@ import { useDebuggerStore } from "@/store/debuger"; import bus from "@/utils/bus"; const store = useDebuggerStore(); -const { ui, network, messageFrame } = storeToRefs(store); +const { ui } = storeToRefs(store); const data = reactive({ dialog: false, diff --git a/src/store/basic.ts b/src/store/basic.ts index 3eeb236..7b949ce 100644 --- a/src/store/basic.ts +++ b/src/store/basic.ts @@ -11,6 +11,7 @@ export const useBasicStore = defineStore('basic', { return { token: '', getUserInfo: false, + online: true, userInfo: { username: '', realName: '', diff --git a/src/store/debuger.ts b/src/store/debuger.ts index 3da39ff..1e083af 100644 --- a/src/store/debuger.ts +++ b/src/store/debuger.ts @@ -1,18 +1,15 @@ -import { defineStore } from "pinia"; +import { defineStore } from 'pinia' -export const useDebuggerStore = defineStore('debugger',{ - state(){ +export const useDebuggerStore = defineStore('debugger', { + state() { return { - showLayoutGrid: false + ui: { + showLayoutGrid: false + } } }, - persist:{ + persist: { storage: localStorage, - paths: ['showLayoutGrid'] - }, - actions:{ - setShowLayoutGrid(value){ - this.showLayoutGrid = value - } + paths: undefined } })