菜单功能开发

This commit is contained in:
暮光:城中城
2021-10-20 23:34:59 +08:00
parent 5cb267fba6
commit 7e57dbaade
7 changed files with 20 additions and 19 deletions

View File

@@ -75,9 +75,11 @@
},
getSwaggerResourceList() {
customApi.post('./swagger-resources').then(res => {
this.swaggerResourceList = res || [];
if (this.swaggerResourceList.length > 0) {
this.swaggerDocChoice = this.swaggerResourceList[0].url;
if (res instanceof Array) {
this.swaggerResourceList = res || [];
if (this.swaggerResourceList.length > 0) {
this.swaggerDocChoice = this.swaggerResourceList[0].url;
}
}
});
}