fix(租户套餐): 修复状态切换开关绑定值错误

使用 `:value` 替代 `v-model:value`,将绑定值修正为布尔类型,以匹配 `ApiSwitch` 组件的预期值。
This commit is contained in:
dap
2026-02-02 11:05:14 +08:00
parent f276b0f062
commit 41f0e043e9

View File

@@ -165,7 +165,7 @@ async function handleChangeStatus(checked: boolean, row: TenantPackage) {
</template>
<template #status="{ row }">
<ApiSwitch
v-model:value="row.status"
:value="row.status === EnableStatus.Enable"
:api="(checked) => handleChangeStatus(checked, row)"
:disabled="!hasAccessByCodes(['system:tenantPackage:edit'])"
@reload="tableApi.query()"