修复重新加载bootstrap.js导致下拉菜单失效;修复#11
This commit is contained in:
@ -11,7 +11,6 @@ import './assets/css/xenon-core.css'
|
||||
import './assets/css/xenon-components.css'
|
||||
import './assets/css/xenon-skins.css'
|
||||
import './assets/css/nav.css'
|
||||
import { loadJs } from './assets/js/app.js'
|
||||
|
||||
Vue.config.productionTip = false
|
||||
Vue.use(VueRouter)
|
||||
@ -26,12 +25,6 @@ const router = new VueRouter({
|
||||
mode: 'history'
|
||||
})
|
||||
|
||||
router.afterEach((to, from, next) => {
|
||||
console.log("to => ", to, "from => ", from, "next => ", next);
|
||||
if (to.path == '/' && to.hash == '') {
|
||||
loadJs();
|
||||
}
|
||||
})
|
||||
|
||||
new Vue({
|
||||
render: h => h(App),
|
||||
|
Reference in New Issue
Block a user