mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-23 21:44:32 +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>
|
||||||
<template #status="{ row }">
|
<template #status="{ row }">
|
||||||
<ApiSwitch
|
<ApiSwitch
|
||||||
v-model:value="row.status"
|
:value="row.status === EnableStatus.Enable"
|
||||||
:api="(checked) => handleChangeStatus(checked, row)"
|
:api="(checked) => handleChangeStatus(checked, row)"
|
||||||
:disabled="!hasAccessByCodes(['system:tenantPackage:edit'])"
|
:disabled="!hasAccessByCodes(['system:tenantPackage:edit'])"
|
||||||
@reload="tableApi.query()"
|
@reload="tableApi.query()"
|
||||||
|
|||||||
Reference in New Issue
Block a user