ui_migration feat(deps): Modified src/ main.js for vue3 compatibility
This commit is contained in:
parent
70cdce3323
commit
8ced9f8b75
2 changed files with 16 additions and 14 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import Vue from "vue";
|
||||
import { createApp } from 'vue';
|
||||
import App from "./App.vue";
|
||||
import store from "./store";
|
||||
import UIkit from "uikit";
|
||||
|
|
@ -21,15 +21,19 @@ UIkit.mixin(
|
|||
"accordion",
|
||||
);
|
||||
|
||||
// Create Vue app
|
||||
const app = createApp(App);
|
||||
|
||||
// Use visibility observer
|
||||
Vue.use(VueObserveVisibility);
|
||||
app.use(VueObserveVisibility);
|
||||
|
||||
Vue.config.productionTip = false;
|
||||
// Disable production tip for Vue
|
||||
app.config.productionTip = false;
|
||||
|
||||
Vue.mixin(queryMixin);
|
||||
Vue.mixin(modalMixin);
|
||||
// Use global mixins
|
||||
app.mixin(queryMixin);
|
||||
app.mixin(modalMixin);
|
||||
|
||||
new Vue({
|
||||
store,
|
||||
render: (h) => h(App),
|
||||
}).$mount("#app");
|
||||
// Use Vuex store
|
||||
app.use(store);
|
||||
app.mount("#app");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue