fix: 菜单图标字段 null 值守卫,补丁版本号 4.8.1
This commit is contained in:
@@ -15,7 +15,7 @@ const props = withDefaults(
|
||||
}
|
||||
);
|
||||
|
||||
const isElementIcon = computed(() => props.icon.startsWith("el-icon"));
|
||||
const elementIconName = computed(() => props.icon.replace("el-icon-", ""));
|
||||
const isElementIcon = computed(() => (props.icon || "").startsWith("el-icon"));
|
||||
const elementIconName = computed(() => (props.icon || "").replace("el-icon-", ""));
|
||||
const svgIconClass = computed(() => `i-svg:${props.icon || "menu"}`);
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user