删除注册页面 为注册接口修改为需要权限 防止业务漏洞

This commit is contained in:
QM303176530
2020-10-18 12:49:18 +08:00
parent 1848ceb8f7
commit 45f2bd4a15
4 changed files with 2 additions and 295 deletions

View File

@@ -3,7 +3,7 @@ import { store } from '@/store/index'
let asyncRouterFlag = 0
const whiteList = ['login', 'register']
const whiteList = ['login']
router.beforeEach(async(to, from, next) => {
const token = store.getters['user/token']