vue 2 to 3 #1

Merged
gator merged 25 commits from dev into master 2022-12-02 11:23:43 +01:00
3 changed files with 9 additions and 14 deletions
Showing only changes of commit 20434ab52a - Show all commits

View File

@ -12,8 +12,7 @@
import MainMenu from "./components/MainMenu.vue";
import CanvasBoard from "./components/CanvasBoard.vue";
export default {
name: "App",
export const App = {
components: {
MainMenu,
CanvasBoard,

View File

@ -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')

View File

@ -1,9 +1,6 @@
import Vue from "vue";
import Vuex from "vuex";
import { createStore } from 'vuex'
Vue.use(Vuex);
export default new Vuex.Store({
export const store = createStore({
state: {
drawing: 0,
rules1d: {