diff --git a/docs/java/VelocityUtils.java b/docs/java/VelocityUtils.java index a64bcd63..73290c75 100644 --- a/docs/java/VelocityUtils.java +++ b/docs/java/VelocityUtils.java @@ -62,7 +62,7 @@ public class VelocityUtils { velocityContext.put("BusinessName", StringUtils.capitalize(genTable.getBusinessName())); velocityContext.put("businessName", genTable.getBusinessName()); velocityContext.put("business_name", StrUtil.toUnderlineCase(genTable.getBusinessName())); - velocityContext.put("business-name", StrUtil.toUnderlineCase(genTable.getBusinessName())); + velocityContext.put("business-name", StrUtil.toSymbolCase(genTable.getBusinessName(),'-')); velocityContext.put("businessname", StrUtil.toSymbolCase(genTable.getBusinessName(), ' ')); velocityContext.put("basePackage", getPackagePrefix(packageName)); velocityContext.put("packageName", packageName); diff --git a/src/components/custom/dict-tag.vue b/src/components/custom/dict-tag.vue index 894d4f06..cf8464e4 100644 --- a/src/components/custom/dict-tag.vue +++ b/src/components/custom/dict-tag.vue @@ -10,7 +10,7 @@ interface Props { value?: string[] | number[] | string | number; dictCode?: string; immediate?: boolean; - dictData?: Api.System.DictData[]; + dictData?: Api.System.DictData; [key: string]: any; } @@ -25,7 +25,7 @@ const attrs = useAttrs() as TagProps; const dictTagData = computed(() => { if (props.dictData) { - return props.dictData; + return [props.dictData]; } // 避免 props.value 为 0 时,无法触发 if (props.dictCode && isNotNull(props.value)) { @@ -42,7 +42,7 @@ const dictTagData = computed(() => { ) {