mirror of
https://github.com/wangdage12/Snap.Server.Web.git
synced 2026-02-18 02:42:14 +08:00
添加下载页面和下载资源管理后台
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user