瀏覽代碼

1.2.41 main.js 里可配置菜单背景色

liuyanpeng 1 年之前
父節點
當前提交
f08f78e8d1
共有 2 個文件被更改,包括 10 次插入3 次删除
  1. 2 2
      package.json
  2. 8 1
      src/main.js

+ 2 - 2
package.json

@@ -1,7 +1,7 @@
 {
   "name": "prodog-pc-client",
   "description": "Leanwo Prodog Client",
-  "version": "1.2.40",
+  "version": "1.2.41",
   "author": "yangzhijie1488 <yangzhijie1488@163.com>",
   "scripts": {
     "dev": "cross-env webpack serve --config ./webpack.dev.js",
@@ -15,7 +15,7 @@
     "ant-design-vue": "^4.2.1",
     "axios": "^0.19.2",
     "click-outside-vue3": "^4.0.1",
-    "client-base-v4": "4.0.73",
+    "client-base-v4": "4.0.74",
     "client-dic-v3": "^3.0.33",
     "client-eam-v3": "^3.0.77",
     "client-role-v3": "^3.0.24",

+ 8 - 1
src/main.js

@@ -47,7 +47,14 @@ import { Notify } from 'pc-component-v3/dist/pc-component-v3.js';
 window.Common = Common;
 window.Notify = Notify;
 
-
+const menuColor = {
+  logoWidth: 152, // logo宽度 (80)
+  mainColor: '#2a3f54', // 菜单栏主题色 ('#277fd0')
+  secondLevelColor: 'linear-gradient(#334556, #2c4257), #2a3f54', // 二级菜单颜色 ('#2e8ee7')
+  threeLevelColor: '#495d70',  // 三级菜单悬浮颜色 ('#6db0ee')
+  searchInputColor: '#1c3e4b', // 菜单搜索框颜色 ('#1673c0')
+}
+localStorage.setItem('menuSetting',JSON.stringify(menuColor))
 
 const app = createApp(App);
 app.use(Antd);