new global api for vue and vuex
This commit is contained in:
13
src/main.js
13
src/main.js
@ -1,10 +1,9 @@
|
||||
import Vue from "vue";
|
||||
import { createApp } from 'vue'
|
||||
import App from "./App.vue";
|
||||
import store from "./store";
|
||||
import { store } from "./store";
|
||||
|
||||
Vue.config.productionTip = false;
|
||||
const app = createApp(App)
|
||||
|
||||
new Vue({
|
||||
store,
|
||||
render: (h) => h(App),
|
||||
}).$mount("#app");
|
||||
app.use(store)
|
||||
|
||||
app.mount('#app')
|
||||
|
||||
Reference in New Issue
Block a user