123456789101112131415161718192021222324252627282930313233343536 |
- import '@/libs/common.js';
- import Vue from 'vue';
- import App from './center.vue';
- import router from './router';
- import store from '@/store/index';
- import './permission';
- import CityPick from '@/components/global-component/citypick/CityPick'
- import Cookies from 'js-cookie';
- Vue.component('CityPick', CityPick);
- new Vue({
- el: '#app',
- router: router,
- store: store,
- render: h => h(App),
- data() {
- return {
- plat: {}
- };
- },
- mounted() {
-
- this.plat = PLAT.info;
- document.title = this.plat.title;
- Cookies.set('platId', process.env.PLAT_ID);
- Cookies.set('platSource', this.plat.source);
- },
- created () {
- router.afterEach((to, from, next) => {
- window.scrollTo(0, 0);
- });
- }
- });
|