2025-04-02 15:45:33 +00:00
|
|
|
import App from './App';
|
|
|
|
import zpMixins from '@/uni_modules/zp-mixins/index.js';
|
2024-10-17 05:04:16 +00:00
|
|
|
// #ifndef VUE3
|
2025-04-02 15:45:33 +00:00
|
|
|
import setFonts from './common/setFonts.js';
|
|
|
|
import Vue from 'vue';
|
2024-10-17 05:04:16 +00:00
|
|
|
|
2025-04-02 15:45:33 +00:00
|
|
|
Vue.use(zpMixins);
|
2024-12-17 02:52:57 +00:00
|
|
|
Vue.config.productionTip = false
|
2024-10-17 05:04:16 +00:00
|
|
|
App.mpType = 'app'
|
|
|
|
|
|
|
|
const app = new Vue({
|
|
|
|
...App
|
|
|
|
})
|
|
|
|
app.$mount()
|
2025-04-02 15:45:33 +00:00
|
|
|
|
2024-10-17 05:04:16 +00:00
|
|
|
// #endif
|
|
|
|
|
|
|
|
// #ifdef VUE3
|
|
|
|
import { createSSRApp } from 'vue'
|
2025-04-02 15:45:33 +00:00
|
|
|
// import App from './App.vue'
|
|
|
|
|
|
|
|
|
2024-10-17 05:04:16 +00:00
|
|
|
export function createApp() {
|
|
|
|
const app = createSSRApp(App)
|
2025-04-02 15:45:33 +00:00
|
|
|
app.mixin(zpMixins);
|
2024-10-17 05:04:16 +00:00
|
|
|
return {
|
|
|
|
app
|
2025-04-02 15:45:33 +00:00
|
|
|
};
|
2024-10-17 05:04:16 +00:00
|
|
|
}
|
2025-04-02 15:45:33 +00:00
|
|
|
|
2024-10-17 05:04:16 +00:00
|
|
|
// #endif
|