Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9d75daa4
authored
Jan 06, 2023
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
解决三级菜单丢失问题
1 parent
6768af94
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
src/config/index.js
src/store/modules/app.js
src/config/index.js
View file @
9d75daa
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: limin
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @Date: 2021-06-07 14:12:32
* @LastEditors: limin
* @LastEditors: limin
* @LastEditTime: 202
2-12-30 14:37:55
* @LastEditTime: 202
3-01-04 13:37:01
*/
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// 根据环境引入不同配置 process.env.VUE_APP_ENV
let
cfg
=
require
(
'./conf.js'
)
let
cfg
=
require
(
'./conf.js'
)
...
@@ -15,7 +15,7 @@ export const fetchConfig = (isEnv = sw) => {
...
@@ -15,7 +15,7 @@ export const fetchConfig = (isEnv = sw) => {
return
Promise
.
resolve
(
cfg
)
return
Promise
.
resolve
(
cfg
)
}
}
return
new
Http
({
headers
:
{
refererurl
:
location
.
pathname
},
request
:
{
timeout
:
30000
}
}).
get
(
'https://oss-config.
dev
.glsx.com.cn/mock/6136bea6ceeb5a5c2bec6950/base/config'
)
return
new
Http
({
headers
:
{
refererurl
:
location
.
pathname
},
request
:
{
timeout
:
30000
}
}).
get
(
'https://oss-config.
test
.glsx.com.cn/mock/6136bea6ceeb5a5c2bec6950/base/config'
)
}
}
export
const
config
=
{
export
const
config
=
{
install
(
vue
,
cfg
)
{
install
(
vue
,
cfg
)
{
...
...
src/store/modules/app.js
View file @
9d75daa
...
@@ -18,7 +18,7 @@ const app = {
...
@@ -18,7 +18,7 @@ const app = {
},
},
SET_MENU_LIST
(
state
,
list
)
{
SET_MENU_LIST
(
state
,
list
)
{
state
.
menuList
=
list
state
.
menuList
=
list
state
.
flatten
=
utils
.
array
.
flattenDeep
(
list
)
.
map
(({
path
,
id
})
=>
({
path
,
id
}))
state
.
flatten
=
utils
.
array
.
flattenDeep
(
list
)
},
},
SET_ROUTES
(
state
,
payload
)
{
SET_ROUTES
(
state
,
payload
)
{
state
.
routers
=
payload
state
.
routers
=
payload
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment