mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-08 07:31:09 +08:00
fix(租户套餐): 修复状态切换开关绑定值错误
使用 `:value` 替代 `v-model:value`,将绑定值修正为布尔类型,以匹配 `ApiSwitch` 组件的预期值。
This commit is contained in:
@@ -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()"
|
||||
|
||||
Reference in New Issue
Block a user