vuex/uni-demo/main.js

27 lines
415 B
JavaScript

import App from './App';
import uView from "uview-ui";
Vue.use(uView);
// #ifndef VUE3
import Vue from 'vue';
import store from '@/store';
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
store,
...App
})
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue';
export function createApp() {
const app = createSSRApp(App)
return {
store,
app
}
}
// #endif