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; const dbName = this.queryParams.dbName;
importTable(tableNames, dbName).then(res => { importTable(tableNames, dbName).then(res => {
console.log(res) console.log(res)
this.$modal.msgSuccess(res.msg); if (res.code === 200){
this.visible = false; this.$modal.msgSuccess("成功");
this.$emit("ok"); this.visible = false;
this.$emit("ok");
}else{
this.$modal.msgSuccess(res.data.msg);
}
}); });
}, },
// //