Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
imac-vue
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
jinhui.wang
2022-07-12 15:53:38 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1c71aef0de4baabd3980cf5bfad00bd8b8005d5c
1c71aef0
1 parent
075c57a8
提示语修正
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
src/permission.js
src/views/systemConfig/preReview/index.vue
src/permission.js
View file @
1c71aef
...
...
@@ -16,8 +16,8 @@ router.beforeEach((to, from, next) => {
store
.
dispatch
(
'GetInfo'
).
then
(()
=>
{
//获取用户表头
store
.
dispatch
(
'GetTableHeaders'
).
then
(()
=>
{
store
.
dispatch
(
'GenerateRoutes'
).
then
(
accessRoutes
=>
{
// 根据roles权限生成可访问的路由表
store
.
dispatch
(
'GenerateRoutes'
).
then
(
accessRoutes
=>
{
router
.
addRoutes
(
accessRoutes
)
// 动态添加可访问路由表
next
({
...
to
,
replace
:
true
})
// hack方法 确保addRoutes已完成
})
...
...
src/views/systemConfig/preReview/index.vue
View file @
1c71aef
...
...
@@ -149,7 +149,7 @@ export default {
addPreFlight(fltList).then(res => {
this.loading = false
if (res.code === 200) {
this.msgSuccess(
'添加成功'
)
this.msgSuccess(
res.msg
)
this.close()
this.preQuery(1)
} else {
...
...
Please
register
or
login
to post a comment