qdt-admin-layout 1.1.41 → 1.1.43

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qdt-admin-layout",
3
- "version": "1.1.41",
3
+ "version": "1.1.43",
4
4
  "description": "基于element-ui的后台管理layout的管家婆改版",
5
5
  "main": "src/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -61,16 +61,18 @@ export default {
61
61
  // 大屏可视化
62
62
  defaultLargeScreenBtn() {
63
63
  // 这里为了可读性,不再将click事件放到外面
64
- return (
65
- <div
66
- title="大屏可视化"
67
- class="user-dropdown-reference"
68
- on-click={() => this.handleLargeScreen()}
69
- >
70
- <span class="username">大屏可视化</span>
71
- <span class="username shu">|</span>
72
- </div>
73
- );
64
+ if (this.$store.state.user?.menu.includes('50207'))
65
+ return (
66
+ <div
67
+ title="大屏可视化"
68
+ class="user-dropdown-reference"
69
+ on-click={() => this.handleLargeScreen()}
70
+ >
71
+ <span class="username">大屏可视化</span>
72
+ <i class="el-icon-monitor username" />
73
+ <span class="username shu">|</span>
74
+ </div>
75
+ );
74
76
  },
75
77
 
76
78
  // 右侧下拉菜单
@@ -84,7 +84,6 @@ export default {
84
84
  methods: {
85
85
  // 将el-menu的select事件传递给外部
86
86
  onSelect(...args) {
87
- console.log(...args, 'args');
88
87
  if (args[0].includes('/large-screen-visualization')) {
89
88
  window.open(args[0], '_blank');
90
89
  return;