diff --git a/public/css/common.css b/public/css/common.css index b83b640fb..25ba7cdcd 100644 --- a/public/css/common.css +++ b/public/css/common.css @@ -98,9 +98,7 @@ z-index: 15995 !important; } -.uploadImage { -} .uploadImage img { border-radius: 8px; diff --git a/public/vcCore/vcFramework.js b/public/vcCore/vcFramework.js index 0995db02c..42f0b28cd 100644 --- a/public/vcCore/vcFramework.js +++ b/public/vcCore/vcFramework.js @@ -684,6 +684,11 @@ Vue.http.post('/callComponent/' + componentCode + "/" + componentMethod, param, options) .then(function (res) { try { + let _header = res.headers; + if(vcFramework.notNull(_header['CONTEXTPATH'])){ + window.location.href = _header['CONTEXTPATH']; + return ; + }; successCallback(res.bodyText, res); } catch (e) { console.error(e); @@ -715,6 +720,11 @@ Vue.http.get('/callComponent/' + componentCode + "/" + componentMethod, param) .then(function (res) { try { + let _header = res.headers; + if(vcFramework.notNull(_header['CONTEXTPATH'])){ + window.location.href = _header['CONTEXTPATH']; + return ; + }; successCallback(res.bodyText, res); if (vcFramework.constant.GET_CACHE_URL.includes(_getPath) && res.status == 200) { vcFramework.saveData(_getPath, JSON.parse(res.bodyText));