Commit 166ce22c authored by 孙浩然's avatar 孙浩然

fix(theme): 修复主题配置时菜单 ID 获取逻辑

- 在移动端和 web 端保存配置时,将 getCheckedKeys 的参数从 true 修改为 false
- 这个修改确保了只获取选中的菜单项的 ID,而不是包括半选状态的菜单项
parent b45a307c
......@@ -253,7 +253,7 @@
// 移动端保存配置
const handleSaveByMobile = async () => {
console.log(mobileTreeRef.value.getCheckedKeys(true));
let menuIds = mobileTreeRef.value.getCheckedKeys(true);
let menuIds = mobileTreeRef.value.getCheckedKeys(false);
let params = {
themeId: themeData.value.themeId,
menuType: 1,
......@@ -269,7 +269,7 @@
// web端保存配置
const handleSaveByWeb = async () => {
let menuIds = webTreeRef.value.getCheckedKeys(true);
let menuIds = webTreeRef.value.getCheckedKeys(false);
let params = {
themeId: themeData.value.themeId,
menuType: 0,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment