25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import Vue from 'vue'
|
|
|
|
import App from './App.vue'
|
|
|
|
import router from '@/router'
|
|
|
|
import store from '@/store'
|
|
|
|
|
|
|
|
Vue.config.productionTip = false
|
|
|
|
|
|
|
|
|
|
|
|
router.beforeEach((to, from, next) => {
|
|
|
|
if (!to.query.appId) {
|
|
|
|
if (from.query.appId) {
|
|
|
|
to.query.appId = from.query.appId
|
|
|
|
} else {
|
|
|
|
to.query.appId = window.location.href.match(/appId=(.*)/)[1]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
next()
|
|
|
|
})
|
|
|
|
|
|
|
|
router.afterEach((to, from) => {
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
new Vue({
|
|
|
|
router,
|
|
|
|
store,
|
|
|
|
render: h => h(App)
|
|
|
|
}).$mount('#app')
|