Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
xiaofang li
MeterSphere
Commits
3c869418
Commit
3c869418
authored
4 years ago
by
Captain.B
Committed by
刘瑞斌
4 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix: 修复启用禁用模块顶部没有刷新的问题
parent
03293013
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/src/business/components/common/head/HeaderTopMenus.vue
+11
-0
...nd/src/business/components/common/head/HeaderTopMenus.vue
with
11 additions
and
0 deletions
+11
-0
frontend/src/business/components/common/head/HeaderTopMenus.vue
+
11
-
0
View file @
3c869418
...
...
@@ -38,6 +38,7 @@
import
{
LicenseKey
}
from
'
@/common/js/constants
'
;
import
{
mapGetters
}
from
"
vuex
"
;
import
{
hasLicense
}
from
"
@/common/js/utils
"
;
import
{
MODULE_CHANGE
,
ModuleEvent
}
from
"
@/business/components/common/head/ListEvent
"
;
const
requireContext
=
require
.
context
(
'
@/business/components/xpack/
'
,
true
,
/router
\.
js$/
);
const
report
=
requireContext
.
keys
().
map
(
key
=>
requireContext
(
key
).
report
);
...
...
@@ -80,6 +81,7 @@ export default {
}
}
this
.
registerEvents
();
},
computed
:
{
...
mapGetters
([
...
...
@@ -106,6 +108,15 @@ export default {
}
return
true
;
},
registerEvents
()
{
ModuleEvent
.
$on
(
MODULE_CHANGE
,
()
=>
{
if
(
module
.
default
)
{
module
.
default
.
listModules
(
this
).
then
(()
=>
{
this
.
menuKey
++
;
});
}
});
}
}
};
</
script
>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help