From 06980e15f14db4543a68b934beaf6de4eafc9d6a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A4=95=E9=98=B3=E5=BE=AE=E7=AC=911?=
<12457268+sunset-smile-1@user.noreply.gitee.com>
Date: Mon, 6 Jan 2025 12:22:05 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=8F=8A=E5=85=B6=E7=99=BB?=
=?UTF-8?q?=E5=BD=95=E9=A1=B5=E7=9A=84=E6=9B=B4=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/home/index.vue | 636 +-------------------------
src/views/login/component/account.vue | 3 +-
src/views/login/index.vue | 2 +-
3 files changed, 5 insertions(+), 636 deletions(-)
diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index fb5c0ac..0daf6d6 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -1,636 +1,4 @@
-
//修改后的首页
@@ -719,7 +87,7 @@ $homeNavLengh: 8;
-
+
diff --git a/src/views/login/component/account.vue b/src/views/login/component/account.vue
index a4d39c4..ad0fce4 100644
--- a/src/views/login/component/account.vue
+++ b/src/views/login/component/account.vue
@@ -105,8 +105,9 @@ const onSignIn = async () => {
if(res?.success){
// 存储 token 到浏览器缓存
Session.set('token', res.data.token);
+ localStorage.setItem('acgroup', JSON.stringify(res.data.user.acgroup));
// usertype判断登录角色
- // Cookies.set('userName', res.data.user.usertype === 1 ? 'admin' : 'user');
+ // Cookies.set('userName', res.data.records.acgroup === 1 ? 'admin' : 'user');
Cookies.set('userName', 'admin');
if (!themeConfig.value.isRequestRoutes) {
// 前端控制路由,2、请注意执行顺序
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 2c648ff..7d1ce69 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -2,7 +2,7 @@
-
![]()
+
{{ getThemeConfig.globalTitle }}