2023-05-11 02:51:56 +00:00
|
|
|
import Vue from 'vue';
|
|
|
|
import App from './App';
|
|
|
|
import store from './store'
|
2024-10-21 07:22:55 +00:00
|
|
|
|
2023-05-11 02:51:56 +00:00
|
|
|
Vue.prototype.$store = store
|
|
|
|
|
2024-10-21 07:22:55 +00:00
|
|
|
import uView from "@/components/uview-ui";
|
|
|
|
Vue.use(uView);
|
2023-05-11 02:51:56 +00:00
|
|
|
|
|
|
|
import statusNav from './components/status-nav/status-nav.vue'; //引入头部组件
|
|
|
|
Vue.component('status-nav',statusNav);//全局注册头部组件
|
|
|
|
|
|
|
|
import footBar from './components/foot-bar/foot-bar.vue'; //引入尾部组件
|
|
|
|
Vue.component('foot-bar',footBar);//全局注册尾部组件
|
|
|
|
|
|
|
|
|
2024-10-21 07:22:55 +00:00
|
|
|
|
2023-05-11 02:51:56 +00:00
|
|
|
// 常用便捷式公共方法
|
|
|
|
import tools from '@/jsFile/tools.js';
|
|
|
|
Vue.prototype.$toolAll = tools;
|
|
|
|
|
|
|
|
// 响应数据
|
|
|
|
import requst from '@/jsFile/requst.js';
|
|
|
|
Vue.prototype.$requst = requst;
|
|
|
|
|
|
|
|
//不显示console.log
|
2024-10-21 07:22:55 +00:00
|
|
|
if (process.env.NODE_ENV !== "development") {
|
|
|
|
// console.log = () => {}
|
2023-05-11 02:51:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// promise
|
|
|
|
Vue.prototype.$onLaunched = new Promise(resolve => {
|
|
|
|
Vue.prototype.$isResolve = resolve
|
|
|
|
})
|
|
|
|
|
|
|
|
App.mpType = 'app';
|
|
|
|
|
|
|
|
const app = new Vue({
|
|
|
|
store,
|
|
|
|
...App
|
|
|
|
})
|
|
|
|
|
|
|
|
app.$mount()
|