dykj-outsource-12123/main.js

25 lines
435 B
JavaScript
Raw Permalink Normal View History

2024-06-27 16:42:05 +08:00
import App from './App';
import uviewPlus from '@/uni_modules/uview-plus';
2024-06-25 18:39:10 +08:00
// #ifndef VUE3
2024-06-27 16:42:05 +08:00
import Vue from 'vue';
import './uni.promisify.adaptor';
Vue.config.productionTip = false;
App.mpType = 'app';
2024-06-25 18:39:10 +08:00
const app = new Vue({
...App
2024-06-27 16:42:05 +08:00
});
app.$mount();
2024-06-25 18:39:10 +08:00
// #endif
// #ifdef VUE3
2024-06-27 16:42:05 +08:00
import { createSSRApp } from 'vue';
2024-06-25 18:39:10 +08:00
export function createApp() {
2024-06-27 16:42:05 +08:00
const app = createSSRApp(App);
app.use(uviewPlus);
2024-06-25 18:39:10 +08:00
return {
app
2024-06-27 16:42:05 +08:00
};
2024-06-25 18:39:10 +08:00
}
2024-06-27 16:42:05 +08:00
// #endif