diff --git a/src/api/authorization.js b/src/api/authorization.js index f1f1a30..f4770fe 100644 --- a/src/api/authorization.js +++ b/src/api/authorization.js @@ -2,7 +2,7 @@ import request from '@/router/axios'; export const getUserinfo = data => { return request({ - url: '/smartpark/AES/decryptAndGetUser', + url: '/smartparkAPP/AES/decryptAndGetUser', method: 'post', jsontext:true, data diff --git a/src/lang/zh.js b/src/lang/zh.js index 2793d37..d073154 100644 --- a/src/lang/zh.js +++ b/src/lang/zh.js @@ -1,5 +1,5 @@ export default { - title: 'BladeX微服务平台', + title: '低值耐用品信息平台', logoutTip: '退出系统, 是否继续?', submitText: '确定', cancelText: '取消', diff --git a/src/router/axios.js b/src/router/axios.js index a6d86bf..27c6e1e 100644 --- a/src/router/axios.js +++ b/src/router/axios.js @@ -47,14 +47,23 @@ axios.interceptors.request.use(config => { isErrorShown = false; //地址为已经配置状态则不添加前缀 if (!isURL(config.url) && !config.url.startsWith(baseUrl)) { - if(config.url.indexOf('smartpark')>0){ config.url = config.url; }else{ config.url = baseUrl + config.url; } - } + // if(config.url.indexOf('/smartpark') != -1){ + // if(config.url.indexOf('/AES/decryptAndGetUser') != -1){ + // config.url = config.url.replace('/smartpark','http://10.90.100.231:8132') + // }else{ + // config.url = config.url.replace('/smartpark','http://10.90.100.231:8333') + // } + // } + // else{ + // config.url = "http://10.90.100.231:8333" + config.url + // } + //安全请求header config.headers['Blade-Requested-With'] = 'BladeHttpRequest'; //headers判断是否需要