Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcxy-manage-shell
Project
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
姜雷
dcxy-manage-shell
Commits
2502d71a
Commit
2502d71a
authored
May 05, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into 'test'
载入路由错误后继续载入其他路由 See merge request
!59
parents
4ba778c2
8e5e19b7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
14 deletions
+32
-14
develop.js
src/dev-local/develop.js
+16
-7
main.js
src/main.js
+16
-7
No files found.
src/dev-local/develop.js
View file @
2502d71a
...
...
@@ -3,14 +3,23 @@ import System from '../lib/main';
window
.
manageShell
=
{
default
:
System
};
setTimeout
(()
=>
{
let
allAasyncRouterMap
=
[
...
customerManage
.
default
,
...
baseManage
.
default
,
...
systemManage
.
default
,
...
operateManage
.
default
,
...
statisticsManage
.
default
,
...
deviceManage
.
default
,
let
allAasyncRouterMap
=
[];
let
routeNameList
=
[
'customerManage'
,
'baseManage'
,
'systemManage'
,
'operateManage'
,
'statisticsManage'
,
'deviceManage'
,
];
routeNameList
.
map
(
name
=>
{
try
{
allAasyncRouterMap
=
allAasyncRouterMap
.
concat
(
window
[
name
].
default
);
}
catch
(
error
)
{
console
.
error
(
name
+
': '
,
error
);
}
return
name
;
});
System
.
createSystem
({
basePath
:
process
.
env
.
VUE_APP_BASE_URL
,
...
...
src/main.js
View file @
2502d71a
let
allAasyncRouterMap
=
[
...
customerManage
.
default
,
...
baseManage
.
default
,
...
systemManage
.
default
,
...
operateManage
.
default
,
...
statisticsManage
.
default
,
...
deviceManage
.
default
,
let
allAasyncRouterMap
=
[];
let
routeNameList
=
[
'customerManage'
,
'baseManage'
,
'systemManage'
,
'operateManage'
,
'statisticsManage'
,
'deviceManage'
,
];
routeNameList
.
map
(
name
=>
{
try
{
allAasyncRouterMap
=
allAasyncRouterMap
.
concat
(
window
[
name
].
default
);
}
catch
(
error
)
{
console
.
error
(
name
+
': '
,
error
);
}
return
name
;
});
const
System
=
manageShell
.
default
;
...
...
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