This commit is contained in:
陈嘉圣
2022-04-28 00:18:29 +08:00
parent dcc114a579
commit 8dbc1dab67
5 changed files with 161 additions and 98 deletions

View File

@ -11,6 +11,7 @@ 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)
@ -25,6 +26,13 @@ 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),
router