1
This commit is contained in:
51
main.js
Normal file
51
main.js
Normal file
@@ -0,0 +1,51 @@
|
||||
import Vue from 'vue'
|
||||
import App from './App'
|
||||
import qs from 'qs'
|
||||
|
||||
// 地址
|
||||
Vue.prototype.$baseUrl = "http://192.168.110.100:9100/pb/"
|
||||
// Vue.prototype.$baseUrl = "http://59.110.212.44:9100/pb/"
|
||||
|
||||
|
||||
|
||||
// uView组件库
|
||||
import uView from "uview-ui";
|
||||
Vue.use(uView);
|
||||
// 传参格式
|
||||
Vue.prototype.$qs = qs
|
||||
//数据管理中心
|
||||
import store from '@/store'
|
||||
Vue.prototype.$store = store;
|
||||
// 工具
|
||||
import '@/plugins/utils.js';
|
||||
//权限配置中心
|
||||
import base from '@/config/baseUrl'
|
||||
Vue.prototype.$base = base;
|
||||
//挂载全局http请求
|
||||
import $http from '@/config/requestConfig'
|
||||
Vue.prototype.$http = $http;
|
||||
// #ifdef MP-WEIXIN
|
||||
//挂载全局微信分享
|
||||
import { wxShare } from '@/config/utils'
|
||||
Vue.prototype.wxShare = wxShare;
|
||||
// #endif
|
||||
//判断是否登录
|
||||
import { judgeLogin } from '@/config/login';
|
||||
Vue.prototype.judgeLogin = judgeLogin;
|
||||
Vue.config.productionTip = false;
|
||||
// #ifdef H5
|
||||
//微信SDK
|
||||
import '@/plugins/wxJsSDK.js';
|
||||
|
||||
// #endif
|
||||
//全局组件
|
||||
import MescrollBody from "@/components/mescroll-uni/mescroll-body.vue";
|
||||
import config from 'uview-ui/libs/config/config'
|
||||
Vue.component("mescroll-body", MescrollBody);
|
||||
App.mpType = 'app'
|
||||
|
||||
const app = new Vue({
|
||||
store,
|
||||
...App
|
||||
})
|
||||
app.$mount();
|
||||
Reference in New Issue
Block a user