成功提示处理

This commit is contained in:
tianfeng 2025-08-22 18:35:23 +08:00
parent 1548e011f3
commit 02cc1b4728

View File

@ -53,7 +53,7 @@ import { ref, reactive, onMounted } from 'vue'
import { useRouter } from 'vue-router'
import MobileHeader from '../components/MobileHeader.vue'
import { getBankBalance, userSalaryCheckExchange, userBankExchangeGold } from '../api/wallet.js'
import {showError, showWarning} from "@/utils/toast.js";
import {showError, showSuccess, showWarning} from "@/utils/toast.js";
const router = useRouter()
@ -174,7 +174,7 @@ const exchangeCoins = async () => {
})
if (response.status === true || response.errorCode === 0) {
showError(`Successfully exchanged ${selectedCoinData.amount} coins for $${selectedCoinData.price}`)
showSuccess(`Successfully exchanged ${selectedCoinData.amount} coins for $${selectedCoinData.price}`)
//
await fetchBankBalance()