修复打包失败问题
This commit is contained in:
@@ -206,10 +206,15 @@
|
|||||||
|
|
||||||
// 钱包操作弹窗(从平台币 tag 点击打开)
|
// 钱包操作弹窗(从平台币 tag 点击打开)
|
||||||
const walletDialogVisible = ref(false)
|
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>) {
|
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
|
walletDialogVisible.value = true
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -92,7 +92,7 @@
|
|||||||
|
|
||||||
const walletBalance = computed(() => {
|
const walletBalance = computed(() => {
|
||||||
const c = props.player?.coin
|
const c = props.player?.coin
|
||||||
return c != null && c !== '' ? Number(c) : 0
|
return c != null ? Number(c) : 0
|
||||||
})
|
})
|
||||||
|
|
||||||
const rules = reactive<FormRules>({
|
const rules = reactive<FormRules>({
|
||||||
|
|||||||
Reference in New Issue
Block a user