mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-12 04:26:44 +08:00
安全性问题处理:代码版本整理 初始版本1 --提交人:阳华祥
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
//权限控制
|
||||
import router from '@/router'
|
||||
import CacheUtils from '@/assets/js/utils/cacheUtils'
|
||||
// import NProgress from 'nprogress' // Progress 进度条
|
||||
// import 'nprogress/nprogress.css' // Progress 进度条样式
|
||||
export function permission() {
|
||||
@@ -11,9 +12,9 @@ export function permission() {
|
||||
document.title = title
|
||||
}
|
||||
//判断是否登录
|
||||
let token = localStorage.token
|
||||
let token = CacheUtils.getLocItem('token')
|
||||
if (!token) {
|
||||
localStorage.token = ''
|
||||
CacheUtils.setLocItem('token','')
|
||||
//无token,判断是否需要登录
|
||||
if (to.meta.auth) {
|
||||
if (window.WebViewJavascriptBridge) {
|
||||
|
||||
Reference in New Issue
Block a user