diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..c7b9a43 Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..b395b3a --- /dev/null +++ b/public/index.html @@ -0,0 +1,20 @@ + + + + + + + + + 首页 + + + + +
+ + + + \ No newline at end of file diff --git a/src/app/App.vue b/src/app/App.vue new file mode 100644 index 0000000..77c736b --- /dev/null +++ b/src/app/App.vue @@ -0,0 +1,62 @@ + + + diff --git a/src/app/main.js b/src/app/main.js new file mode 100644 index 0000000..2ef8c82 --- /dev/null +++ b/src/app/main.js @@ -0,0 +1,28 @@ +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') diff --git a/src/subpage/router.js b/src/app/router.js similarity index 78% rename from src/subpage/router.js rename to src/app/router.js index 9e03a62..b855f2e 100644 --- a/src/subpage/router.js +++ b/src/app/router.js @@ -1,7 +1,7 @@ import Vue from 'vue' import Router from 'vue-router' -import Home from './views/Home.vue' -import About from './views/About.vue' +import Home from '@/views/Home.vue' +import About from '@/views/About.vue' Vue.use(Router) diff --git a/src/index/App.vue b/src/index/App.vue index 97c3ca7..74adaa8 100644 --- a/src/index/App.vue +++ b/src/index/App.vue @@ -1,6 +1,7 @@