导入swagger
This commit is contained in:
@@ -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();
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user