diff --git a/package.json b/package.json index c1e2b4c..97e6261 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "element-ui": "^2.15.5", "vue": "^2.6.11", "vue-router": "^3.2.0", + "vue-wechat-title": "^2.0.7", "vuex": "^3.4.0" }, "devDependencies": { diff --git a/public/index.html b/public/index.html index 3e5a139..5b1dcd3 100644 --- a/public/index.html +++ b/public/index.html @@ -1,17 +1,25 @@ + - - <%= htmlWebpackPlugin.options.title %> + + + + -
- - + + \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 03c1ed3..8a47312 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,41 +1,17 @@ - - - + \ No newline at end of file diff --git a/src/main.js b/src/main.js index 3c77e64..cf806c4 100644 --- a/src/main.js +++ b/src/main.js @@ -4,9 +4,12 @@ import router from './router' import store from './store' import ElementUI from 'element-ui'; import 'element-ui/lib/theme-chalk/index.css'; +import VueWechatTitle from 'vue-wechat-title'; Vue.use(ElementUI); +Vue.use(VueWechatTitle); +// 阻止启动生产消息 Vue.config.productionTip = false new Vue({ diff --git a/src/router/index.js b/src/router/index.js index e44cdcd..600697b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,22 +1,14 @@ import Vue from 'vue' import VueRouter from 'vue-router' -import Home from '../views/Home.vue' Vue.use(VueRouter) const routes = [ { path: '/', - name: 'Home', - component: Home - }, - { - path: '/about', - name: 'About', - // route level code-splitting - // this generates a separate chunk (about.[hash].js) for this route - // which is lazy-loaded when the route is visited. - component: () => import(/* webpackChunkName: "about" */ '../views/About.vue') + name: 'Login', + component: () => import('../views/login/index.vue'), + meta: { title: '安全培训 - 登陆' } } ] diff --git a/src/views/About.vue b/src/views/About.vue deleted file mode 100644 index 3fa2807..0000000 --- a/src/views/About.vue +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/src/views/Home.vue b/src/views/Home.vue deleted file mode 100644 index 8bd6c57..0000000 --- a/src/views/Home.vue +++ /dev/null @@ -1,18 +0,0 @@ - - - diff --git a/src/views/login/index.vue b/src/views/login/index.vue new file mode 100644 index 0000000..bcc682e --- /dev/null +++ b/src/views/login/index.vue @@ -0,0 +1,64 @@ + + + \ No newline at end of file