diff --git a/Yi.Framework/Yi.Framework.ApiMicroservice/SwaggerDoc.xml b/Yi.Framework/Yi.Framework.ApiMicroservice/SwaggerDoc.xml index 89ebe304..b1bf5f4c 100644 --- a/Yi.Framework/Yi.Framework.ApiMicroservice/SwaggerDoc.xml +++ b/Yi.Framework/Yi.Framework.ApiMicroservice/SwaggerDoc.xml @@ -73,6 +73,12 @@ + + + 获取用户的目录菜单,不包含接口 + + + 更 diff --git a/Yi.Framework/Yi.Framework.ApiMicroservice/YIDB.db b/Yi.Framework/Yi.Framework.ApiMicroservice/YIDB.db index 2d0b5178..85be485f 100644 Binary files a/Yi.Framework/Yi.Framework.ApiMicroservice/YIDB.db and b/Yi.Framework/Yi.Framework.ApiMicroservice/YIDB.db differ diff --git a/Yi.Vue/src/util/myaxios.js b/Yi.Vue/src/util/myaxios.js index 6e3751a6..7f96c754 100644 --- a/Yi.Vue/src/util/myaxios.js +++ b/Yi.Vue/src/util/myaxios.js @@ -50,6 +50,15 @@ myaxios.interceptors.response.use(async function(response) { store.dispatch("closeLoad"); return resp; }, function(error) { + + const resp = error.response.data + if (resp.code == undefined && resp.msg == undefined) { + vm.$dialog.notify.error("错误代码:无,原因:与服务器失去连接", { + position: "top-right", + timeout: 5000, + }); + } + store.dispatch("closeLoad"); return Promise.reject(error); });