Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
81bd163d
Commit
81bd163d
authored
Aug 24, 2021
by
季圣华
Browse files
解决手机展示页面的bug
parent
ebf8a978
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/components/page/GlobalLayout.vue
View file @
81bd163d
...
...
@@ -14,7 +14,7 @@
<side-menu
mode=
"inline"
:menus=
"menus"
@
menuSelect=
"myMenuSelect"
@
menuSelect=
"myMenuSelect
Mobile
"
:theme=
"navTheme"
:collapsed=
"false"
:collapsible=
"true"
></side-menu>
...
...
@@ -150,15 +150,17 @@
this
.
collapsed
=
false
}
},
//update-begin-author:taoyan date:20190430 for:动态路由title显示配置的菜单title而不是其对应路由的title
myMenuSelect
(
value
){
//此处触发动态路由被点击事件
this
.
findMenuBykey
(
this
.
menus
,
value
.
key
)
this
.
$emit
(
"
dynamicRouterShow
"
,
value
.
key
,
this
.
activeMenu
.
id
,
this
.
activeMenu
.
text
)
// update-begin-author:sunjianlei date:20191223 for: 修复刷新后菜单Tab名字显示异常
let
storeKey
=
'
route:title:
'
+
this
.
activeMenu
.
url
this
.
$ls
.
set
(
storeKey
,
this
.
activeMenu
.
text
)
// update-end-author:sunjianlei date:20191223 for: 修复刷新后菜单Tab名字显示异常
},
myMenuSelectMobile
(
value
){
this
.
myMenuSelect
(
value
)
//给菜单id赋值,用于调用之后控制按钮的显示
Vue
.
ls
.
set
(
'
funId
'
,
this
.
activeMenu
.
id
,
7
*
24
*
60
*
60
*
1000
);
},
findMenuBykey
(
menus
,
key
){
for
(
let
i
of
menus
){
...
...
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