diff --git a/frontend/src/components/features/player/Casino.vue b/frontend/src/components/features/player/Casino.vue index 761d526..7f2a843 100644 --- a/frontend/src/components/features/player/Casino.vue +++ b/frontend/src/components/features/player/Casino.vue @@ -34,6 +34,19 @@ در حال بارگذاری اطلاعات بورس... +
+

+ بورس در دسترس نیست +

+

+ در حال حاضر امکان اتصال به بورس وجود ندارد. لطفاً بعداً + دوباره تلاش کنید. +

+ +
+
زمان باقی‌مانده: {{ countdown }} @@ -138,6 +151,7 @@ const emit = defineEmits(['close']); const isLoading = ref(true); const isInvesting = ref(false); const checkResult = ref(null); +const loadError = ref(false); const investAmount = ref(0); const toast = useToast(); const countdown = ref(''); @@ -194,10 +208,12 @@ watch( async function doInvestCheck() { isLoading.value = true; + loadError.value = false; try { const result = await investCheck(); checkResult.value = result; } catch (error) { + loadError.value = true; toast.error(error.message || 'خطا در دریافت اطلاعات بورس'); logger.error('Error calling investCheck:', error); } finally {