fix(接口定义): 修复tcp协议提示未保存的缺陷

--bug=1023978 --user=王孝刚 [接口测试] github#22426TCP接口定义在点击保存后关闭时依然弹窗提示保存
https://www.tapd.cn/55049933/s/1345089
This commit is contained in:
wxg0103 2023-03-02 18:30:24 +08:00 committed by wxg0103
parent b00df883d0
commit 258c6147b3
3 changed files with 2 additions and 65 deletions

View File

@ -210,7 +210,8 @@ export default {
},
'basicForm.tags': {
handler(v, v1) {
if (v && v1 && JSON.stringify(v) !== JSON.stringify(v1)) {
console.log(v, v1)
if (v && v1 && JSON.stringify(v) !== JSON.stringify(v1) && v!=='[]' && v1!=='[]') {
this.apiMapStatus();
}
},

View File

@ -209,12 +209,6 @@ export default {
});
}
},
'basisData.method': {
handler(v) {
this.changeApiProtocol(v);
},
deep: true,
},
},
methods: {
openHis() {

View File

@ -174,58 +174,6 @@ export default {
};
},
watch: {
'basicForm.name': {
handler(v, v1) {
if (v && v1 && v !== v1) {
this.apiMapStatus();
}
},
},
'basicForm.userId': {
handler(v, v1) {
if (v && v1 && v !== v1) {
this.apiMapStatus();
}
},
},
'basicForm.moduleId': {
handler(v, v1) {
if (this.basicForm.moduleId) {
if (v && v1 && v !== v1) {
this.apiMapStatus();
}
}
},
},
'basicForm.status': {
handler(v, v1) {
if (v && v1 && v !== v1) {
this.apiMapStatus();
}
},
},
'basicForm.follows': {
handler(v, v1) {
if (v && v1 && JSON.stringify(v) !== JSON.stringify(v1)) {
this.apiMapStatus();
}
},
},
'basicForm.description': {
handler(v, v1) {
if (v && v1 && v !== v1) {
this.apiMapStatus();
}
},
},
'basicForm.tags': {
handler(v, v1) {
this.tagCount++;
if (v && v1 && JSON.stringify(v) !== JSON.stringify(v1) && this.tagCount > 1) {
this.apiMapStatus();
}
},
},
moduleOptions: {
handler(v, v1) {
if (!this.basicForm.moduleId) {
@ -236,12 +184,6 @@ export default {
},
},
methods: {
apiMapStatus() {
store.apiStatus.set('fromChange', true);
if (this.basicForm.id) {
store.apiMap.set(this.basicForm.id, store.apiStatus);
}
},
getMaintainerOptions() {
getProjectMemberOption().then((data) => {
this.maintainerOptions = data.data;