Mr. Robot 2 months ago
parent
commit
0839e88854
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/views/FileManagement/database.vue

+ 7 - 0
src/views/FileManagement/database.vue

@@ -277,6 +277,13 @@ const submitData = async () => {
         });
       }
     } else {
+      if (!!!form.value.shipTag) {
+        ElMessage({
+          message: "数据库名称不能为空",
+          type: "warning",
+        });
+        return;
+      }
       // @ts-ignore
       proxy.$loading.start();
       const res = (await shipsCreate({