Start on Vue 3 changes

This commit is contained in:
N-Pex 2025-05-06 09:27:53 +02:00
parent dcc4784bfd
commit c913a40e18
35 changed files with 3570 additions and 1913 deletions

View file

@ -1,5 +1,3 @@
import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../components/Home.vue'
import Chat from '../components/Chat.vue'
import Join from '../components/Join.vue'
@ -12,8 +10,7 @@ import CreateChannel from '../components/CreateChannel.vue'
import CreateFileDrop from '../components/CreateFileDrop.vue'
import User from '../models/user'
import util from '../plugins/utils'
Vue.use(VueRouter)
import { createRouter, createWebHashHistory } from 'vue-router'
const routes = [
{
@ -110,8 +107,9 @@ const routes = [
}
]
const router = new VueRouter({
routes
const router = createRouter({
history: createWebHashHistory(),
routes: routes
});
router.beforeEach((to, from, next) => {