Skip to content

Commit 9daeb1c

Browse files
committed
perf: adjust the import order to make it more elegant #1537
1 parent 3153a1b commit 9daeb1c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import 'element-ui/lib/theme-chalk/index.css'
1010
import '@/styles/index.scss' // global css
1111

1212
import App from './App'
13-
import router from './router'
1413
import store from './store'
14+
import router from './router'
1515

1616
import i18n from './lang' // Internationalization
1717
import './icons' // icon

src/store/modules/permission.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function filterAsyncRouter(routes, roles) {
3636

3737
const permission = {
3838
state: {
39-
routers: constantRouterMap,
39+
routers: [],
4040
addRouters: []
4141
},
4242
mutations: {

0 commit comments

Comments
 (0)