@@ -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);
+ });
},
});
}