You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shop-app/main.js

32 lines
628 B

3 years ago
/*
* @Author: ch
* @Date: 2021-07-26 23:22:16
* @LastEditors: ch
3 years ago
* @LastEditTime: 2022-03-29 11:14:39
3 years ago
* @Description: file content
*/
import Vue from 'vue';
import App from './App';
3 years ago
import {router,RouterMount} from '@/common/router/index.js';
3 years ago
import uView from 'uview-ui';
3 years ago
import store from '@/common/store'
3 years ago
Vue.use(router);
Vue.use(uView);
3 years ago
Vue.prototype.$store = store
3 years ago
Vue.config.productionTip = false;
App.mpType = 'app'
const app = new Vue({
...App
})
// #ifdef H5
RouterMount(app,router,'#app')
// #endif
// #ifndef H5
app.$mount(); //为了兼容小程序及app端必须这样写才有效果
// #endif