shaogen1995 2 年之前
父节点
当前提交
1cbef19797
共有 3 个文件被更改,包括 7 次插入4 次删除
  1. 二进制
      src/assets/img/login/LOGO.png
  2. 2 2
      src/pages/Layout/index.module.scss
  3. 5 2
      src/pages/ObjectSon/Object1/AddObject1/index.tsx

二进制
src/assets/img/login/LOGO.png


+ 2 - 2
src/pages/Layout/index.module.scss

@@ -21,8 +21,8 @@
         }
 
         .logo {
-          height: 58px;
-          width: 230px;
+          height: 35px;
+          width: 256px;
           background-image: url('../../assets/img/login/LOGO.png');
           background-size: 100% 100%;
         }

+ 5 - 2
src/pages/ObjectSon/Object1/AddObject1/index.tsx

@@ -38,9 +38,10 @@ function AddObject1() {
     const res = await object1AddAPI();
     setAddInfoTop({
       ...res.data,
-      sourceName: options[0].name ? options[0].name : "",
+      sourceName:null
+      // sourceName: options[0].name ? options[0].name : "",
     });
-  }, [options]);
+  }, []);
 
   // 通过id获取详情函数
   const object1infoOutAPIFu = useCallback(
@@ -191,6 +192,8 @@ function AddObject1() {
   // 点击提交
   const submitFu = useCallback(
     async (val: number) => {
+      if (!addInfoTop.sourceName) return MessageFu.warning("请选择藏品来源!");
+
       if (results.length === 0)
         return MessageFu.warning("至少需要添加一条藏品信息!");
       const obj = {