From e8663c2db3ce0190f3dcb88f45cf4dce30ef6ede Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Mon, 9 Mar 2020 00:34:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/css/common.css | 2 -- public/vcCore/vcFramework.js | 10 ++++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) 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));