成功提示处理
This commit is contained in:
parent
1548e011f3
commit
02cc1b4728
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user