diff --git a/snowy-admin-web/src/views/sys/resource/menu/form.vue b/snowy-admin-web/src/views/sys/resource/menu/form.vue index 007c11c5..b15765f0 100644 --- a/snowy-admin-web/src/views/sys/resource/menu/form.vue +++ b/snowy-admin-web/src/views/sys/resource/menu/form.vue @@ -157,12 +157,12 @@ formData.value = record // 因为版本升级后该字段无参数,所以默认为可见 if (!record.visible) { - formData.value.visible = 'true' + formData.value.visible = 'TRUE' } } else { formData.value = { menuType: 'MENU', - visible: 'true', + visible: 'TRUE', sortCode: 99 } formData.value = Object.assign(formData.value, record) @@ -219,16 +219,7 @@ } const categoryOptions = tool.dictList('MENU_TYPE') - const visibleOptions = [ - { - label: '显示', - value: 'true' - }, - { - label: '隐藏', - value: 'false' - } - ] + const visibleOptions = tool.dictList('MENU_VISIBLE') // 验证并提交数据 const onSubmit = () => { formRef.value diff --git a/snowy-admin-web/src/views/sys/resource/menu/index.vue b/snowy-admin-web/src/views/sys/resource/menu/index.vue index 70837e56..70c93c1e 100644 --- a/snowy-admin-web/src/views/sys/resource/menu/index.vue +++ b/snowy-admin-web/src/views/sys/resource/menu/index.vue @@ -35,7 +35,7 @@ > + @@ -99,7 +112,7 @@ -
+