鉴权页面修改

master
zhangdi 3 months ago
parent 45b48e16ff
commit 87bc6dcacc
  1. 2
      src/api/authorization.js
  2. 2
      src/lang/zh.js
  3. 13
      src/router/axios.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

@ -1,5 +1,5 @@
export default {
title: 'BladeX微服务平台',
title: '低值耐用品信息平台',
logoutTip: '退出系统, 是否继续?',
submitText: '确定',
cancelText: '取消',

@ -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判断是否需要

Loading…
Cancel
Save