Explorar o código

fix: 修复菜单管理中标题栏样式异常问题 (#6934)

Rex hai 6 meses
pai
achega
5fcfabf1d4
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      playground/src/views/system/menu/modules/form.vue

+ 1 - 2
playground/src/views/system/menu/modules/form.vue

@@ -107,7 +107,7 @@ const schema: VbenFormSchema[] = [
     componentProps() {
       // 不需要处理多语言时就无需这么做
       return {
-        addonAfter: titleSuffix.value,
+        ...(titleSuffix.value && { addonAfter: titleSuffix.value }),
         onChange({ target: { value } }: ChangeEvent) {
           titleSuffix.value = value && $te(value) ? $t(value) : undefined;
         },
@@ -442,7 +442,6 @@ const [Form, formApi] = useVbenForm({
   showDefaultActions: false,
   wrapperClass: 'grid-cols-2 gap-x-4',
 });
-
 const [Drawer, drawerApi] = useVbenDrawer({
   onConfirm: onSubmit,
   onOpenChange(isOpen) {