导入swagger

This commit is contained in:
2025-02-19 11:18:13 +08:00
parent eec0468ca3
commit b800bd7f1d
2 changed files with 24 additions and 3 deletions

View File

@@ -32,7 +32,14 @@ export default {
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
importApi({url: this.form.url}).then((res) => {
loading.close();
this.$message.success("导入成功")
this.cancel();
})