recycapp/main.js

31 lines
684 B
JavaScript
Raw Permalink Normal View History

2025-10-22 20:28:50 +08:00
import App from './App.vue'
import * as Api from './config/api.js'
2025-10-29 15:50:14 +08:00
import mpShare from './common/libs/mixin/mpShare.js'
import store from './store';
2025-10-22 20:28:50 +08:00
// #ifndef VUE3
import Vue from 'vue'
import uView from 'uview-ui'
Vue.config.productionTip = false
2025-10-25 09:54:24 +08:00
Vue.prototype.$api = Api;
2025-10-29 15:50:14 +08:00
Vue.prototype.path = "https://admin.dbcdq.cn"; //挂载在 Vue 实例上
Vue.prototype.$store = store; //挂载在 Vue 实例上
2025-10-22 20:28:50 +08:00
Vue.use(uView)
2025-10-29 15:50:14 +08:00
Vue.mixin(mpShare)
2025-10-22 20:28:50 +08:00
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
const app = createSSRApp(App)
return {
app
}
}
// #endif