Commit 0f4e8266ed74489169929a94b86fd52c5b181a53

Authored by fengtao
1 parent f0efeb2b

fix: 产品品类启用禁用的时候,按钮闪动幅度过大

... ... @@ -107,7 +107,9 @@
107 107 const handleSwitch = async (e: any, record: any) => {
108 108 switchLoading.value = true;
109 109 await deviceProfileCategory({ ...record, status: e });
110   - switchLoading.value = false;
  110 + setTimeout(() => {
  111 + switchLoading.value = false;
  112 + }, 1500);
111 113 createMessage.success(
112 114 `${!e ? t('common.disableText') : t('common.enableText')}${t('common.successText')}`
113 115 );
... ...