Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
Overview
Overview
Details
Activity
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
office
haoban-3
Commits
88e6e05a
Commit
88e6e05a
authored
May 09, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 添加校验是否已完成初始化的逻辑
parent
ab7f14af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
index.vue
src/components/layout/index.vue
+22
-2
No files found.
src/components/layout/index.vue
View file @
88e6e05a
...
...
@@ -43,15 +43,35 @@ export default {
};
},
created
()
{
provideData
.
layoutVm
=
this
;
this
.
$on
(
'command'
,
this
.
onCommand
);
this
.
$router
.
beforeEach
((
to
,
from
,
next
)
=>
{
this
.
activedMenu
=
this
.
getActivedMenu
(
this
.
getMenuByPath
(
to
.
path
.
slice
(
1
)));
next
();
});
this
.
getEnterpriseSecret
();
this
.
getMenuList
();
provideData
.
layoutVm
=
this
;
this
.
$on
(
'command'
,
this
.
onCommand
);
},
methods
:
{
getEnterpriseSecret
()
{
if
(
this
.
$route
.
path
==
'/enterpriseSet'
)
return
;
getRequest
(
'/haoban-manage3-web/is-wx-enterprise-secret-set'
,
{}).
then
(
res
=>
{
const
{
errorCode
,
result
}
=
res
.
data
||
{};
if
(
errorCode
!=
1
)
{
errorMsg
.
errorMsg
(
res
.
data
);
return
;
}
if
(
!
result
)
{
this
.
$confirm
(
'提示'
,
'请先完成商户初始化设置后,再进行其他操作'
,
{
type
:
'warning'
,
cancelButtonText
:
'忽略'
,
confirmButtonText
:
'去完成'
}).
then
(()
=>
{
this
.
$router
.
push
(
'/enterpriseSet'
);
});
}
});
},
getMenuList
()
{
getRequest
(
'/haoban-manage3-web/get-haoban-menu'
,
{}).
then
(
res
=>
{
const
{
errorCode
,
result
}
=
res
.
data
||
[];
...
...
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