From 3835cf1ca8d5ac8475052d3876ebeb4a2c4160f1 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Mon, 22 Jan 2024 14:22:02 +0800
Subject: [PATCH] 根据角色,动态切换首页,及首页变更的一系列相关调整

---
 src/config/website.js |   43 +++++++++++++++++++++++--------------------
 1 files changed, 23 insertions(+), 20 deletions(-)

diff --git a/src/config/website.js b/src/config/website.js
index e50bdbf..7747a21 100644
--- a/src/config/website.js
+++ b/src/config/website.js
@@ -4,52 +4,55 @@
 export default {
   title: "saber",
   logo: "S",
-  key: 'saber', //配置主键,目前用于存储
-  indexTitle: '基层智治综合协同平台',
-  clientId: 'saber', // 客户端id
-  clientSecret: 'saber_secret', // 客户端密钥
+  key: "saber", //配置主键,目前用于存储
+  indexTitle: "基层智治综合协同平台",
+  clientId: "saber", // 客户端id
+  clientSecret: "saber_secret", // 客户端密钥
   tenantMode: true, // 是否开启租户模式
   tenantId: "000000", // 管理组租户编号
   captchaMode: true, // 是否开启验证码模式
   switchMode: false, // 是否开启部门切换模式
-  lockPage: '/lock',
+  lockPage: "/lock",
   tokenTime: 3000,
-  tokenHeader: 'Blade-Auth',
+  tokenHeader: "Blade-Auth",
   //http的status默认放行列表
   statusWhiteList: [],
   //配置首页不可关闭
   isFirstPage: false,
+
   fistPage: {
     label: "首页",
     value: "/wel/index",
     params: {},
     query: {},
     meta: {
-      i18n: 'dashboard'
+      i18n: "dashboard",
     },
     group: [],
-    close: false
+    close: false,
   },
+
   //配置菜单的属性
   menu: {
-    iconDefault: 'iconfont icon-caidan',
+    iconDefault: "iconfont icon-caidan",
     props: {
-      label: 'name',
-      path: 'path',
-      icon: 'source',
-      children: 'children'
-    }
+      label: "name",
+      path: "path",
+      icon: "source",
+      children: "children",
+    },
   },
   // 第三方系统授权地址
-  authUrl: 'http://localhost/blade-auth/oauth/render',
+  authUrl: "http://localhost/blade-auth/oauth/render",
   // 报表设计器地址(cloud端口为8108,boot端口为80)
-  reportUrl: 'https://srgdjczzxtpt.com:2080/jczz-ureport/ureport',
+  reportUrl: "https://srgdjczzxtpt.com:2080/jczz-ureport/ureport",
   // reportUrl: 'http://localhost:9528/ureport',
   // 单点登录系统认证(blade-auth服务的地)
-  ssoUrl: 'http://localhost:8100/oauth/authorize?client_id=saber&response_type=code&redirect_uri=',
+  ssoUrl:
+    "http://localhost:8100/oauth/authorize?client_id=saber&response_type=code&redirect_uri=",
   // 单点登录回调地址(Saber服务的地址)
-  redirectUri: 'http://localhost:1888',
+  redirectUri: "http://localhost:1888",
   // redirectUri:'http://192.168.0.102:9528',
   // minio 基础路径
-  minioUrl: 'https://srgdjczzxtpt.com:2080/gminio/jczz/'
-}
+  minioUrl: "https://srgdjczzxtpt.com:2080/gminio/jczz/",
+};

--
Gitblit v1.9.3