diff --git a/web/src/utils/request.js b/web/src/utils/request.js index f5754559..6a0ffbda 100644 --- a/web/src/utils/request.js +++ b/web/src/utils/request.js @@ -73,7 +73,7 @@ service.interceptors.response.use( if (response.data.data && response.data.data.reload) { store.commit('user/LoginOut') } - return response.data.msg + return response.data.msg ? response.data : response } }, error => { diff --git a/web/src/view/systemTools/autoCode/index.vue b/web/src/view/systemTools/autoCode/index.vue index f84576ba..44254a80 100644 --- a/web/src/view/systemTools/autoCode/index.vue +++ b/web/src/view/systemTools/autoCode/index.vue @@ -274,6 +274,9 @@ export default { return false; } const data = await createTemp(this.form); + if(data.headers?.success == "false"){ + return + } const blob = new Blob([data]); const fileName = "ginvueadmin.zip"; if ("download" in document.createElement("a")) {