34 lines
692 B
JavaScript
34 lines
692 B
JavaScript
import App from './App'
|
|
import * as antIcons from '@ant-design/icons-vue';
|
|
import Antd from 'ant-design-vue';
|
|
|
|
import 'ant-design-vue/dist/antd.css';
|
|
// import { notification } from 'ant-design-vue';
|
|
// import components from './components/global';
|
|
import './assets/global.css';
|
|
|
|
// #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 store from './store'
|
|
export function createApp() {
|
|
const app = createSSRApp(App)
|
|
|
|
|
|
app.use(store).use(Antd);
|
|
|
|
return {
|
|
app
|
|
}
|
|
}
|
|
// #endif
|