This commit is contained in:
Leo_Ding 2025-09-30 19:38:22 +08:00
parent 0deb933cd0
commit 404be52393

View File

@ -125,7 +125,7 @@ const columns = [
const reqType = ['GET', 'POST', 'PUT', 'PATCH', 'HEAD', 'DELETE']
const cancelText = ref(t('button.cancel'))
const okText = ref(t('button.confirm'))
const platform=ref('')
/**
* 新建
*/
@ -165,6 +165,7 @@ async function handleEdit(record = {}) {
formData.value = cloneDeep(data)
formData.value.properties = formData.value.properties ? JSON.parse(formData.value.properties) : ''
formData.value.resources = formData.value.resources || (formData.value.resources = [])
platform.value=data.platform
}
/**
@ -193,6 +194,7 @@ function handleOk() {
case 'edit':
newApiData()
params.resources = formData.value.resources
params.platform=platform.value
result = await apis.menu.updateMenu(formData.value.id, params).catch(() => {
throw new Error()
})