mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 21:59:12 +08:00
优化版本
This commit is contained in:
parent
78c878490c
commit
e8663c2db3
@ -98,9 +98,7 @@
|
||||
z-index: 15995 !important;
|
||||
}
|
||||
|
||||
.uploadImage {
|
||||
|
||||
}
|
||||
|
||||
.uploadImage img {
|
||||
border-radius: 8px;
|
||||
|
||||
@ -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));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user