shjz-applet/main.js

33 lines
775 B
JavaScript
Raw Normal View History

2022-08-12 10:25:42 +00:00
import Vue from 'vue';
import App from './App';
import store from './store'
Vue.prototype.$store = store
import statusNav from './components/status-nav/status-nav.vue'; //引入头部组件
Vue.component('status-nav',statusNav);//全局注册头部组件
import footTab from './components/foot-tab/foot-tab.vue'; //引入尾部组件
Vue.component('foot-tab',footTab);//全局注册尾部组件
// 常用便捷式公共方法
import tools from '@/jsFile/tools.js';
Vue.prototype.$toolAll = tools;
// 响应数据
import requst from '@/jsFile/requst.js';
Vue.prototype.$requst = requst;
//不显示console.log
if (uni.getSystemInfoSync().platform !== "devtools") {
console.log = () => {}
}
App.mpType = 'app';
const app = new Vue({
store,
...App
})
app.$mount()