Skip to content

Commit

Permalink
perf: adjust the import order to make it more elegant #1537
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen committed Jan 29, 2019
1 parent 3153a1b commit 9daeb1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import 'element-ui/lib/theme-chalk/index.css'
import '@/styles/index.scss' // global css

import App from './App'
import router from './router'
import store from './store'
import router from './router'

import i18n from './lang' // Internationalization
import './icons' // icon
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/permission.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function filterAsyncRouter(routes, roles) {

const permission = {
state: {
routers: constantRouterMap,
routers: [],
addRouters: []
},
mutations: {
Expand Down

0 comments on commit 9daeb1c

Please sign in to comment.