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.
29 lines
563 B
29 lines
563 B
2 years ago
|
/*
|
||
|
* @Author: ch
|
||
|
* @Date: 2021-07-26 23:22:16
|
||
|
* @LastEditors: ch
|
||
|
* @LastEditTime: 2022-03-22 17:47:44
|
||
|
* @Description: file content
|
||
|
*/
|
||
|
import Vue from 'vue';
|
||
|
import App from './App';
|
||
|
|
||
|
import {router,RouterMount} from './common/router/index.js';
|
||
|
import uView from 'uview-ui';
|
||
|
|
||
|
Vue.use(router);
|
||
|
Vue.use(uView);
|
||
|
|
||
|
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
|