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.
35 lines
599 B
35 lines
599 B
|
3 weeks ago
|
import Vue from 'vue'
|
||
|
|
import App from './App'
|
||
|
|
import store from '@/store';
|
||
|
|
|
||
|
|
Vue.config.productionTip = false;
|
||
|
|
|
||
|
|
App.mpType = 'app';
|
||
|
|
|
||
|
|
// 引入全局uView
|
||
|
|
import uView from 'uview-ui'
|
||
|
|
Vue.use(uView);
|
||
|
|
|
||
|
|
// 引入vuex
|
||
|
|
const vuexStore = require("@/store/$u.mixin.js");
|
||
|
|
Vue.mixin(vuexStore);
|
||
|
|
|
||
|
|
// 创建对象
|
||
|
|
const app = new Vue({
|
||
|
|
store,
|
||
|
|
...App
|
||
|
|
});
|
||
|
|
|
||
|
|
// 接口集中管理
|
||
|
|
import httpInstall from '@/http/install.js'
|
||
|
|
Vue.use(httpInstall, app)
|
||
|
|
|
||
|
|
import http from '@/http/api.js'
|
||
|
|
Vue.prototype.$http = http
|
||
|
|
|
||
|
|
// 公共函数
|
||
|
|
import globalFunc from '@/utils/func.js'
|
||
|
|
Vue.use(globalFunc, app);
|
||
|
|
|
||
|
|
app.$mount()
|