Merge pull request '切换菜单时 图标不清空问题' (#15) from caor into huyt

Reviewed-on: http://192.168.2.237:3000/root/middleground_code_v2/pulls/15
This commit is contained in:
caorui 2024-07-09 14:09:30 +08:00
commit 815be63697
1 changed files with 2 additions and 1 deletions

View File

@ -295,9 +295,10 @@ export default {
console.log(res, "res");
this.ruleForm = res.attribute;
this.$nextTick(() => {
this.imageUrl = ""
this.$refs.customForm.choiceAssignment(res.attribute);
let menuIcon = res.attribute.menuIcon ? res.attribute.menuIcon : "";
if (menuIcon) {
if (menuIcon && !menuIcon.includes("icon")) {
this.getLogoUrl(menuIcon);
}
});