|
|
@@ -3,6 +3,7 @@ import App from './App.vue'
|
|
|
import router from './router'
|
|
|
import store from './store'
|
|
|
import ElementUI from 'element-ui';
|
|
|
+import Dcontent from './components/dcontent/dcontent.vue'
|
|
|
|
|
|
import './assets/css/reset.css';
|
|
|
import './assets/css/base.css'
|
|
|
@@ -12,15 +13,17 @@ Vue.config.productionTip = false
|
|
|
Vue.use(ElementUI);
|
|
|
|
|
|
|
|
|
- router.afterEach((to,from,next) => {
|
|
|
- //页面跳转时,页面位置重置为顶部
|
|
|
- window.scrollTo(0,0);
|
|
|
- //修改页面title
|
|
|
- window.document.title = to.meta.title == undefined?'荆州红十字会':to.meta.title
|
|
|
- })
|
|
|
+router.afterEach((to, from, next) => {
|
|
|
+ //页面跳转时,页面位置重置为顶部
|
|
|
+ window.scrollTo(0, 0);
|
|
|
+ //修改页面title
|
|
|
+ window.document.title = to.meta.title == undefined ? '荆州红十字会' : to.meta.title
|
|
|
+})
|
|
|
+
|
|
|
+Vue.component('dcontent', Dcontent)
|
|
|
|
|
|
new Vue({
|
|
|
- router,
|
|
|
- store,
|
|
|
- render: h => h(App)
|
|
|
-}).$mount('#app')
|
|
|
+ router,
|
|
|
+ store,
|
|
|
+ render: h => h(App)
|
|
|
+}).$mount('#app')
|