jiangchengfeiyi-xiaochengxu/main.js

31 lines
503 B
JavaScript
Raw Normal View History

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