fix routes.

This commit is contained in:
2023-06-13 12:11:16 +08:00
parent 03f24190fc
commit 995dd98ddb
3 changed files with 91 additions and 91 deletions

View File

@@ -4,14 +4,14 @@ import { createPinia } from "pinia"
import storage from "utils/storage"
import { STORAGE_KEY } from "utils/constants"
import { routes } from "./routes"
import { ojs, admins } from "./routes"
import App from "./App.vue"
import { toggleLogin } from "./shared/composables/modal"
const router = createRouter({
history: createWebHistory(),
routes: [routes],
routes: [ojs, admins],
})
router.beforeEach((to, from, next) => {