Explorar o código

fix: 复制失败

tangning %!s(int64=2) %!d(string=hai) anos
pai
achega
e16ac5219b
Modificáronse 1 ficheiros con 8 adicións e 4 borrados
  1. 8 4
      src/views/scenes/list.vue

+ 8 - 4
src/views/scenes/list.vue

@@ -353,10 +353,14 @@
           content: t('routes.scenes.copyInfi.content'),
           onOk: async () => {
             setLoading(true);
-            sceneCopy({ num: record.num }).then(() => {
-              createMessage.success(t('routes.scenes.copyInfi.ok'));
-              reload();
-            });
+            sceneCopy({ num: record.num })
+              .then(() => {
+                createMessage.success(t('routes.scenes.copyInfi.ok'));
+                reload();
+              })
+              .catch(() => {
+                setLoading(false);
+              });
           },
         });
       }