This commit is contained in:
@@ -121,8 +121,8 @@ export function useAssetFormatters() {
|
||||
}
|
||||
|
||||
// 获取钱包状态标签类型
|
||||
const getWalletStatusType = (status?: number) => {
|
||||
const map: Record<number, string> = {
|
||||
const getWalletStatusType = (status?: number): TagType => {
|
||||
const map: Record<number, TagType> = {
|
||||
1: 'success',
|
||||
2: 'warning',
|
||||
3: 'danger'
|
||||
@@ -176,8 +176,8 @@ export function useAssetFormatters() {
|
||||
}
|
||||
|
||||
// 获取交易类型标签颜色
|
||||
const getTransactionTypeTag = (type: string | undefined) => {
|
||||
const map: Record<string, string> = {
|
||||
const getTransactionTypeTag = (type: string | undefined): TagType => {
|
||||
const map: Record<string, TagType> = {
|
||||
recharge: 'success',
|
||||
deduct: 'danger',
|
||||
refund: 'warning'
|
||||
|
||||
Reference in New Issue
Block a user