From c485cfbaa9cc7922934dd88a8a2270b260a8b471 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 12 Dec 2024 20:59:31 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=A1=8C=E9=9D=A2=E7=89=88=E5=9B=BD?= =?UTF-8?q?=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/store/modules/user.ts | 10 ++-------- de-xpack | 2 +- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/core/core-frontend/src/store/modules/user.ts b/core/core-frontend/src/store/modules/user.ts index 6a65b8020e..807156bda3 100644 --- a/core/core-frontend/src/store/modules/user.ts +++ b/core/core-frontend/src/store/modules/user.ts @@ -51,14 +51,8 @@ export const userStore = defineStore('user', { }, actions: { async setUser() { - const desktop = wsCache.get('app.desktop') - let res = null - if (desktop) { - res = { data: { uid: '1', name: 'DataEase 用户', oid: '1', language: 'zh-CN' } } - } else { - const user = await import('@/api/user') - res = await user.userInfo() - } + const user = await import('@/api/user') + const res = await user.userInfo() const data = res.data data.token = wsCache.get('user.token') data.exp = wsCache.get('user.exp') diff --git a/de-xpack b/de-xpack index 023f4fceaf..cfed21c770 160000 --- a/de-xpack +++ b/de-xpack @@ -1 +1 @@ -Subproject commit 023f4fceafd3142c31b6f67b2da960f21ff6e4c7 +Subproject commit cfed21c770bbd11f0a362369391ab7a39339b32b