添加下载页面和下载资源管理后台

This commit is contained in:
fanbook-wangdage
2026-02-05 21:52:41 +08:00
parent 079358a910
commit 7e08de8250
8 changed files with 1353 additions and 16 deletions

View File

@@ -6,8 +6,8 @@ router.beforeEach(async (to, _ , next) => {
// 未登录
if (!userStore.token) {
// 主页(/)允许未登录访问
if (to.path === '/' || to.path === '/login') {
// 主页(/、登录页和下载页允许未登录访问
if (to.path === '/' || to.path === '/login' || to.path === '/download') {
next()
} else {
next('/login')