Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zghywpc-vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李苏
zghywpc-vue
Commits
15e7373a
Commit
15e7373a
authored
Aug 12, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面初始化调整
parent
3611ad38
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
92 deletions
+0
-92
index.js
src/commonList/index.js
+0
-90
permission.js
src/permission.js
+0
-1
index.vue
src/views/index.vue
+0
-1
No files found.
src/commonList/index.js
deleted
100644 → 0
View file @
3611ad38
export
default
{
list
:[
{
path
:
'/baseData'
,
component
:
'Layout'
,
hidden
:
false
,
alwaysShow
:
true
,
redirect
:
'store'
,
meta
:
{
title
:
"基础数据"
,
icon
:
"fa-cog"
,
noCache
:
false
,
link
:
null
,
mkid
:
215000000
},
children
:[
/* 计量单位*/
{
erpComponent
:
true
,
component
:
'template/index'
,
hidden
:
false
,
meta
:{
"title"
:
"财务"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
215060000
,
},
redirect
:
'meteringUnit'
,
name
:
'finance'
,
path
:
"finance"
,
children
:[{
erpComponent
:
true
,
component
:
'template/view/index'
,
hidden
:
false
,
meta
:{
"title"
:
"发票分类"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
215060100
,
},
name
:
'financeClassification'
,
path
:
"financeClassification"
,
},
{
erpComponent
:
true
,
component
:
'baseData/finance/period/index'
,
hidden
:
false
,
meta
:{
"title"
:
"会计期间"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
215060200
,
},
name
:
'financePeriod'
,
path
:
"financePeriod"
,
},
{
erpComponent
:
true
,
component
:
'template/view/index'
,
hidden
:
false
,
meta
:{
"title"
:
"会计单位"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
215060300
,
},
name
:
'financeUnit'
,
path
:
"financeUnit"
,
},
{
erpComponent
:
true
,
component
:
'baseData/finance/store/index'
,
hidden
:
false
,
meta
:{
"title"
:
"仓库财务信息"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
215060400
,
},
name
:
'financeStore'
,
path
:
"financeStore"
,
},
]
}
]
}
]
}
src/permission.js
View file @
15e7373a
...
@@ -23,7 +23,6 @@ router.beforeEach((to, from, next) => {
...
@@ -23,7 +23,6 @@ router.beforeEach((to, from, next) => {
if
(
store
.
state
.
app
.
isInit
==
false
)
{
if
(
store
.
state
.
app
.
isInit
==
false
)
{
store
.
commit
(
'app/changeInit'
)
store
.
commit
(
'app/changeInit'
)
store
.
dispatch
(
'GenerateRoutes'
).
then
(
accessRoutes
=>
{
store
.
dispatch
(
'GenerateRoutes'
).
then
(
accessRoutes
=>
{
console
.
log
(
accessRoutes
,
'添加权限accessRoutes'
)
router
.
addRoutes
(
accessRoutes
)
// 动态添加可访问路由表
router
.
addRoutes
(
accessRoutes
)
// 动态添加可访问路由表
next
({
...
to
,
replace
:
true
})
// hack方法 确保addRoutes已完成
next
({
...
to
,
replace
:
true
})
// hack方法 确保addRoutes已完成
})
})
...
...
src/views/index.vue
View file @
15e7373a
...
@@ -36,7 +36,6 @@ export default {
...
@@ -36,7 +36,6 @@ export default {
}
}
},
},
mounted
(){
mounted
(){
console
.
log
(
this
)
},
},
methods
:
{
methods
:
{
back
()
{
back
()
{
...
...
Write
Preview
Markdown
is supported
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