src/common/utils/request.ts
@@ -16,7 +16,7 @@ (config) => { // 若是有做鉴权token , 就给头部带上token const token = getToken() if (token == null || token == '' || token == 'undefined') { if ((token == null || token == '' || token == 'undefined') && config.url != '/api/base/login') { router.push('/login') return config // window.location = `//${window.location.hostname}:9080`+'/login'