wyling007 3 anos atrás
pai
commit
c202b26f69
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4 1
      src/views/cashOut/components/cashout.vue

+ 4 - 1
src/views/cashOut/components/cashout.vue

@@ -24,7 +24,10 @@
 		const amount = ref<number>();
 		const loading = ref(false);
 		const cashout = async () => {
-			if (!amount.value) return Toast.fail("请输入金额");
+			if (!amount.value) {
+				Toast.fail("请输入金额");
+				return false;
+			}
 			loading.value = true;
 			const data = await cashOutModel.cashout(amount.value);
 			loading.value = false;