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.
44 lines
1022 B
44 lines
1022 B
2 months ago
|
import Vue from 'vue'
|
||
|
import App from './App'
|
||
|
import store from './store' // store
|
||
|
import plugins from './plugins' // plugins
|
||
|
import './permission' // permission
|
||
|
// 导入invite.js
|
||
|
import invite from './utils/invite'
|
||
|
// import VConsole from 'vconsole';
|
||
|
|
||
|
// 初始化vConsole
|
||
|
// const vConsole = new VConsole();
|
||
|
// 安装插件全局弹窗
|
||
|
Vue.use(invite)
|
||
|
Vue.use(plugins)
|
||
|
|
||
|
// 引入uView2.0
|
||
|
import uView from '@/uni_modules/uview-ui'
|
||
|
Vue.use(uView)
|
||
|
Vue.config.productionTip = false
|
||
|
Vue.prototype.$store = store
|
||
|
console.log(uni.getSystemInfoSync().platform, process.env.NODE_ENV);
|
||
|
// console.log(uni.getSystemInfoSync().platform === "android");
|
||
|
/**
|
||
|
*在运行环境中去除打印字符
|
||
|
*/
|
||
|
// if (process.env.NODE_ENV === 'production') {
|
||
|
|
||
|
// console.log = () => {}
|
||
|
// }
|
||
|
|
||
|
// if (process.env.NODE_ENV !== 'production') {
|
||
|
// console.log = () => {} //开发环境去除看一下效果
|
||
|
// } else {
|
||
|
// //正式环境去除
|
||
|
// console.log = () => {}
|
||
|
// }
|
||
|
|
||
|
App.mpType = 'app'
|
||
|
|
||
|
const app = new Vue({
|
||
|
...App
|
||
|
})
|
||
|
|
||
|
app.$mount()
|