调整写法

Former-commit-id: eb2bd69978e4e1e04893c323dc5b3a3ec43149a4
This commit is contained in:
liyang
2018-07-26 13:44:54 +08:00
parent f653bc8d7f
commit e5fdbeb34e
3 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -141,7 +141,7 @@
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?20b202d9b1189c9352fc3e8c92c215fc";
hm.src = "https://hm.baidu.com/hm.js?de358376fd85791edd2acd3049956aa3";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
+4 -2
View File
@@ -10,11 +10,13 @@ import '@/plugin/axios'
import '@/mock/register'
import util from '@/libs/util.js'
import store from '@/store/index'
import pluginOpen from '@/plugin/open'
// 菜单和路由设置
import router from './router'
import menuHeader from '@/menu/header'
import menuAside from '@/menu/aside'
import pluginOpen from '@/plugin/open'
import { frameInRoutes } from '@/router/routes'
import router from './router'
Vue.use(ElementUI)
Vue.use(pluginOpen)
+4 -1
View File
@@ -8,7 +8,10 @@ import routes from './routes'
Vue.use(VueRouter)
let router = new VueRouter({ routes })
// 导出路由 在 main.js 里使用
const router = new VueRouter({
routes
})
/**
* 路由拦截