新增深色模式
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import {createRouter, createWebHistory} from 'vue-router'
|
||||
import {useUiStore} from "@/store/ui.js";
|
||||
import {replace} from "lodash-es";
|
||||
|
||||
const routes = [
|
||||
{
|
||||
@@ -91,7 +90,7 @@ router.beforeEach(async (to, from, next) => {
|
||||
}
|
||||
|
||||
if (token && to.name === 'login') {
|
||||
next(from.path)
|
||||
return next(from.path)
|
||||
}
|
||||
|
||||
next()
|
||||
|
||||
Reference in New Issue
Block a user