修复打包失败问题

This commit is contained in:
2026-03-04 20:12:23 +08:00
parent 85babe3fd4
commit 2cfbe0c80c
2 changed files with 8 additions and 3 deletions

View File

@@ -206,10 +206,15 @@
// 钱包操作弹窗(从平台币 tag 点击打开)
const walletDialogVisible = ref(false)
const walletOperatePlayer = ref<Record<string, any> | null>(null)
type WalletPlayer = { id: number; username?: string; coin?: number }
const walletOperatePlayer = ref<WalletPlayer | null>(null)
function openWalletOperate(row: Record<string, any>) {
walletOperatePlayer.value = row
walletOperatePlayer.value = {
id: Number(row.id),
username: row.username,
coin: row.coin != null ? Number(row.coin) : undefined
}
walletDialogVisible.value = true
}
</script>

View File

@@ -92,7 +92,7 @@
const walletBalance = computed(() => {
const c = props.player?.coin
return c != null && c !== '' ? Number(c) : 0
return c != null ? Number(c) : 0
})
const rules = reactive<FormRules>({