master
面包骑士 2024-08-21 16:29:13 +08:00
parent bdc5c81d0c
commit c7b5a4928b
1 changed files with 7 additions and 3 deletions

View File

@ -117,9 +117,13 @@ export default {
const dbName = this.queryParams.dbName;
importTable(tableNames, dbName).then(res => {
console.log(res)
this.$modal.msgSuccess(res.msg);
this.visible = false;
this.$emit("ok");
if (res.code === 200){
this.$modal.msgSuccess("成功");
this.visible = false;
this.$emit("ok");
}else{
this.$modal.msgSuccess(res.data.msg);
}
});
},
//