zjk
2026-09-23 fb33ef7ea01af3e59178b8437f3ecf8d76b2b32c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import App from "./App";
// #ifdef H5
import { initH5DebugPanel } from "@/utils/h5-debug.js";
initH5DebugPanel();
// #endif
 
// #ifndef VUE3
import Vue from "vue";
import "./uni.promisify.adaptor";
Vue.config.productionTip = false;
App.mpType = "app";
const app = new Vue({
    ...App
})
app.$mount()
// #endif
 
// #ifdef VUE3
import {
    createSSRApp
} from 'vue'
import * as Pinia from "pinia";
import globalPlugin from './plugins/global'
import uViewPro from "@/uni_modules/uview-pro";
 
export function createApp() {
    const app = createSSRApp(App)
    app.use(globalPlugin)
    app.use(uViewPro);
    app.use(Pinia.createPinia());
    return {
        app,
        Pinia,
    }
}
// #endif