vue2-client 1.7.18 → 1.7.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
+ **1.7.20 -2023-10-11 @江超**
5
+ - 跳转首页问题修改
6
+
7
+ **1.7.19 -2023-10-11 @江超**
8
+ - 菜单头部可配置
9
+
4
10
  **1.7.15 - 1.7.18 -2023-10-11 @江超**
5
11
  - 查询配置生成界面调整
6
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.7.18",
3
+ "version": "1.7.20",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
@@ -57,7 +57,7 @@
57
57
  "@vue/test-utils": "^1.3.6",
58
58
  "@vuepress/plugin-back-to-top": "^1.9.9",
59
59
  "babel-core": "^6.22.1",
60
- "babel-eslint": "^6.0.0",
60
+ "babel-eslint": "^10.1.0",
61
61
  "babel-jest": "^25.5.1",
62
62
  "babel-loader": "^6.0.0",
63
63
  "babel-plugin-component": "^1.1.1",
@@ -7,7 +7,7 @@
7
7
  v-model="collapsed"
8
8
  :trigger="null">
9
9
  <div :class="['logo', theme]">
10
- <router-link to="/dashboard/workplace">
10
+ <router-link :to="homePage">
11
11
  <a-row type="flex" align="middle" style="height: 64px;word-wrap: break-word;word-break:break-all;">
12
12
  <a-col :span="4">
13
13
  <img :src="logoSrc" alt="logo">
@@ -60,7 +60,7 @@ export default {
60
60
  }
61
61
  return systemNameFontSize
62
62
  },
63
- ...mapState('setting', ['isMobile', 'systemName', 'logoSrc', 'systemNameFontSize'])
63
+ ...mapState('setting', ['isMobile', 'systemName', 'logoSrc', 'systemNameFontSize', 'homePage'])
64
64
  },
65
65
  methods: {
66
66
  onSelect (obj) {
@@ -35,6 +35,11 @@ module.exports = {
35
35
  },
36
36
  footerLinks: [ // 页面底部链接,{link: '链接地址', name: '名称/显示文字', icon: '图标,支持 ant design vue 图标库'}
37
37
  ],
38
+ // 菜单工具项显示
39
+ menuTools: {
40
+ // 通知
41
+ notice: true
42
+ },
38
43
  // 配置的默认命名空间
39
44
  defaultServiceName: 'af-system',
40
45
  // 旧系统路径
@@ -17,7 +17,7 @@
17
17
  <a-icon type="reload" />
18
18
  </a>
19
19
  </a-tooltip>
20
- <component class="header-item" :is="dynamicComponents['HeaderNotice']"/>
20
+ <component v-if="menuTools.notice" class="header-item" :is="dynamicComponents['HeaderNotice']"/>
21
21
  <header-avatar class="header-item"/>
22
22
  <a-dropdown class="lang header-item">
23
23
  <div>
@@ -74,7 +74,7 @@ export default {
74
74
  }
75
75
  },
76
76
  computed: {
77
- ...mapState('setting', ['theme', 'isMobile', 'layout', 'systemName', 'logoSrc', 'lang', 'pageWidth', 'customizeComponent']),
77
+ ...mapState('setting', ['theme', 'isMobile', 'layout', 'systemName', 'logoSrc', 'lang', 'pageWidth', 'menuTools', 'customizeComponent']),
78
78
  headerTheme () {
79
79
  if (this.layout === 'side' && this.theme.mode === 'dark' && !this.isMobile) {
80
80
  return 'light'