Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
admin-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sean King
admin-fe
Commits
046d1369
Commit
046d1369
authored
7 years ago
by
Pan
Committed by
花裤衩
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
not use Lazy Loading In dev
parent
657937c7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/router/_import_development.js
+1
-0
1 addition, 0 deletions
src/router/_import_development.js
src/router/_import_production.js
+1
-0
1 addition, 0 deletions
src/router/_import_production.js
src/router/index.js
+38
-35
38 additions, 35 deletions
src/router/index.js
with
40 additions
and
35 deletions
src/router/_import_development.js
0 → 100644
+
1
−
0
View file @
046d1369
module
.
exports
=
file
=>
require
(
'
../views/
'
+
file
+
'
.vue
'
)
This diff is collapsed.
Click to expand it.
src/router/_import_production.js
0 → 100644
+
1
−
0
View file @
046d1369
module
.
exports
=
file
=>
()
=>
import
(
'
../views/
'
+
file
+
'
.vue
'
)
This diff is collapsed.
Click to expand it.
src/router/index.js
+
38
−
35
View file @
046d1369
import
Vue
from
'
vue
'
;
import
Router
from
'
vue-router
'
;
const
_import
=
require
(
'
./_import_
'
+
process
.
env
.
NODE_ENV
);
// in development env not use Lazy Loading,because Lazy Loading large page will cause webpack hot update too slow
// so only in production use Lazy Loading
/* layout */
import
Layout
from
'
../views/layout/Layout
'
;
/* login */
impor
t
Login
from
'
../views/login/
'
;
const
authRedirect
=
()
=>
import
(
'
../views/
login/authredirect
'
);
const
sendPWD
=
()
=>
import
(
'
../views/
login/sendpwd
'
);
const
reset
=
()
=>
import
(
'
../views/
login/reset
'
);
cons
t
Login
=
_import
(
'
login/index
'
)
;
const
authRedirect
=
_
import
(
'
login/authredirect
'
);
const
sendPWD
=
_
import
(
'
login/sendpwd
'
);
const
reset
=
_
import
(
'
login/reset
'
);
/* dashboard */
const
dashboard
=
()
=>
import
(
'
../views/
dashboard/index
'
);
const
dashboard
=
_
import
(
'
dashboard/index
'
);
/* Introduction */
const
Introduction
=
()
=>
import
(
'
../views/
introduction/index
'
);
const
Introduction
=
_
import
(
'
introduction/index
'
);
/* components */
const
componentsIndex
=
()
=>
import
(
'
../views/
components/index
'
);
const
Tinymce
=
()
=>
import
(
'
../views/
components/tinymce
'
);
const
Markdown
=
()
=>
import
(
'
../views/
components/markdown
'
);
const
JsonEditor
=
()
=>
import
(
'
../views/
components/jsoneditor
'
);
const
DndList
=
()
=>
import
(
'
../views/
components/dndlist
'
);
const
AvatarUpload
=
()
=>
import
(
'
../views/
components/avatarUpload
'
);
const
Dropzone
=
()
=>
import
(
'
../views/
components/dropzone
'
);
const
Sticky
=
()
=>
import
(
'
../views/
components/sticky
'
);
const
SplitPane
=
()
=>
import
(
'
../views/
components/splitpane
'
);
const
CountTo
=
()
=>
import
(
'
../views/
components/countTo
'
);
const
Mixin
=
()
=>
import
(
'
../views/
components/mixin
'
);
const
componentsIndex
=
_
import
(
'
components/index
'
);
const
Tinymce
=
_
import
(
'
components/tinymce
'
);
const
Markdown
=
_
import
(
'
components/markdown
'
);
const
JsonEditor
=
_
import
(
'
components/jsoneditor
'
);
const
DndList
=
_
import
(
'
components/dndlist
'
);
const
AvatarUpload
=
_
import
(
'
components/avatarUpload
'
);
const
Dropzone
=
_
import
(
'
components/dropzone
'
);
const
Sticky
=
_
import
(
'
components/sticky
'
);
const
SplitPane
=
_
import
(
'
components/splitpane
'
);
const
CountTo
=
_
import
(
'
components/countTo
'
);
const
Mixin
=
_
import
(
'
components/mixin
'
);
/* charts */
const
chartIndex
=
()
=>
import
(
'
../views/
charts/index
'
);
const
KeyboardChart
=
()
=>
import
(
'
../views/
charts/keyboard
'
);
const
KeyboardChart2
=
()
=>
import
(
'
../views/
charts/keyboard2
'
);
const
LineMarker
=
()
=>
import
(
'
../views/
charts/line
'
);
const
MixChart
=
()
=>
import
(
'
../views/
charts/mixchart
'
);
const
chartIndex
=
_
import
(
'
charts/index
'
);
const
KeyboardChart
=
_
import
(
'
charts/keyboard
'
);
const
KeyboardChart2
=
_
import
(
'
charts/keyboard2
'
);
const
LineMarker
=
_
import
(
'
charts/line
'
);
const
MixChart
=
_
import
(
'
charts/mixchart
'
);
/* error page */
const
Err404
=
()
=>
import
(
'
../views/
error/404
'
);
const
Err401
=
()
=>
import
(
'
../views/
error/401
'
);
const
Err404
=
_
import
(
'
error/404
'
);
const
Err401
=
_
import
(
'
error/401
'
);
/* error log */
const
ErrorLog
=
()
=>
import
(
'
../views/
errlog/index
'
);
const
ErrorLog
=
_
import
(
'
errlog/index
'
);
/* excel */
const
ExcelDownload
=
()
=>
import
(
'
../views/
excel/index
'
);
const
ExcelDownload
=
_
import
(
'
excel/index
'
);
/* theme */
const
Theme
=
()
=>
import
(
'
../views/
theme/index
'
);
const
Theme
=
_
import
(
'
theme/index
'
);
/* example*/
const
TableLayout
=
()
=>
import
(
'
../views/
example/table/index
'
);
const
DynamicTable
=
()
=>
import
(
'
../views/
example/table/dynamictable
'
);
const
Table
=
()
=>
import
(
'
../views/
example/table/table
'
);
const
DragTable
=
()
=>
import
(
'
../views/
example/table/dragTable
'
);
const
InlineEditTable
=
()
=>
import
(
'
../views/
example/table/inlineEditTable
'
);
const
TableLayout
=
_
import
(
'
example/table/index
'
);
const
DynamicTable
=
_
import
(
'
example/table/dynamictable
'
);
const
Table
=
_
import
(
'
example/table/table
'
);
const
DragTable
=
_
import
(
'
example/table/dragTable
'
);
const
InlineEditTable
=
_
import
(
'
example/table/inlineEditTable
'
);
const
Form
=
()
=>
import
(
'
../views/
example/form
'
);
const
Tab
=
()
=>
import
(
'
../views/
example/tab/index
'
);
const
Form
=
_
import
(
'
example/form
'
);
const
Tab
=
_
import
(
'
example/tab/index
'
);
/* permission */
const
Permission
=
()
=>
import
(
'
../views/
permission/index
'
);
const
Permission
=
_
import
(
'
permission/index
'
);
Vue
.
use
(
Router
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment