优化版本

This commit is contained in:
java110 2020-03-09 00:34:09 +08:00
parent 78c878490c
commit e8663c2db3
2 changed files with 10 additions and 2 deletions

View File

@ -98,9 +98,7 @@
z-index: 15995 !important;
}
.uploadImage {
}
.uploadImage img {
border-radius: 8px;

View File

@ -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));