shop_uniapp/main.js

34 lines
898 B
JavaScript
Raw Permalink Normal View History

2024-06-06 09:55:01 +08:00
import Vue from 'vue'
import App from './App'
import store from './store'
import {toast} from './utils/tools'
import Cache from './utils/cache'
import uView from "@/components/uview-ui";
import minxinsApp from '@/mixins/app'
import MescrollBody from "@/components/mescroll-uni/mescroll-body.vue"
import {router,RouterMount} from './router.js'
import routerLink from './js_sdk/uni-simple-router/link.vue'
Vue.component('mescroll-body', MescrollBody)
Vue.prototype.$toast = toast
Vue.prototype.$Cache = Cache
2024-09-16 17:31:35 +08:00
Vue.prototype.$payWait = 2500
2024-11-15 15:47:51 +08:00
Vue.prototype.$aliOSS = 'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/'
2024-06-06 09:55:01 +08:00
Vue.config.productionTip = false
Vue.component('RouterLink', routerLink)
Vue.use(router)
Vue.mixin(minxinsApp);
Vue.use(uView);
App.mpType = 'app'
const app = new Vue({
...App,
store
})
// #ifdef H5
RouterMount(app,router,'#app');
// #endif
// #ifndef H5
app.$mount();
// #endif