mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-30 11:11:55 +08:00
fix: #I67WXP bug
This commit is contained in:
parent
5b64fc3d5d
commit
a0f2e0e138
@ -142,7 +142,11 @@ const submitForm = async () => {
|
|||||||
// 提交请求
|
// 提交请求
|
||||||
try {
|
try {
|
||||||
const data = unref(formRef)?.formModel as TenantPackageApi.TenantPackageVO
|
const data = unref(formRef)?.formModel as TenantPackageApi.TenantPackageVO
|
||||||
data.menuIds = treeRef.value!.getCheckedKeys(false) as number[]
|
data.menuIds = [
|
||||||
|
...(treeRef.value!.getCheckedKeys(false) as unknown as Array<number>),
|
||||||
|
...(treeRef.value!.getHalfCheckedKeys() as unknown as Array<number>)
|
||||||
|
]
|
||||||
|
console.info(data.menuIds)
|
||||||
if (actionType.value === 'create') {
|
if (actionType.value === 'create') {
|
||||||
await TenantPackageApi.createTenantPackageTypeApi(data)
|
await TenantPackageApi.createTenantPackageTypeApi(data)
|
||||||
message.success(t('common.createSuccess'))
|
message.success(t('common.createSuccess'))
|
||||||
|
Loading…
Reference in New Issue
Block a user