修复文章发布报错

This commit is contained in:
2026-08-20 01:11:43 +08:00
parent 14f2e8b5c1
commit 758f072494
17 changed files with 644 additions and 69 deletions
+1
View File
@@ -41,6 +41,7 @@ declare module 'vue' {
ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElHeader: typeof import('element-plus/es')['ElHeader']
ElIcon: typeof import('element-plus/es')['ElIcon']
ElImage: typeof import('element-plus/es')['ElImage']
ElInput: typeof import('element-plus/es')['ElInput']
ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
ElLink: typeof import('element-plus/es')['ElLink']
+1 -1
View File
@@ -7099,7 +7099,7 @@
"version": "5.9.3",
"resolved": "https://registry.npmmirror.com/typescript/-/typescript-5.9.3.tgz",
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
"dev": true,
"devOptional": true,
"license": "Apache-2.0",
"bin": {
"tsc": "bin/tsc",
+23 -9
View File
@@ -565,6 +565,7 @@ h3 {
font-size: 14px;
font-weight: 500;
position: relative;
background: transparent;
html:not(.dark) & {
color: rgba(255, 255, 255, 0.85);
@@ -609,19 +610,24 @@ h3 {
color: #ffffff !important;
}
// 嵌套展开的子菜单容器保持透明,避免 Element Plus 注入的
// --el-menu-bg-color 在二级及以下区域形成不透明背景块;
// 二级 ul 不需要上下内边距
.el-menu--inline {
background: transparent !important;
padding-top: 0 !important;
padding-bottom: 0 !important;
}
// 子菜单样式
.el-sub-menu {
.el-sub-menu__title {
position: relative;
}
&.is-opened .el-sub-menu__title {
background: rgba(255, 255, 255, 0.12) !important;
margin-left: -3px;
}
// 展开的父级菜单标题不加背景,背景只留给当前激活的菜单项
.el-menu-item {
padding-left: 48px !important;
font-size: 13px;
&.is-active {
@@ -630,6 +636,18 @@ h3 {
}
}
// 二级菜单项缩进 24px
.el-menu--inline > .el-menu-item,
.el-menu--inline > .el-sub-menu > .el-sub-menu__title {
padding-left: 24px !important;
}
// 三级菜单项缩进 48px
.el-menu--inline .el-menu--inline > .el-menu-item,
.el-menu--inline .el-menu--inline > .el-sub-menu > .el-sub-menu__title {
padding-left: 48px !important;
}
// 暗色主题适配
html.dark & {
.el-menu-item.is-active {
@@ -648,10 +666,6 @@ h3 {
color: var(--el-color-primary-light-3) !important;
}
.el-sub-menu.is-opened .el-sub-menu__title {
background: rgba(64, 158, 255, 0.08) !important;
}
.el-sub-menu .el-menu-item.is-active {
background: rgba(64, 158, 255, 0.15) !important;
}
@@ -28,6 +28,8 @@ const isCreated = ref(false)
const options = {
height: '100%',
// umo-editor 会定时触发自动保存(onSave),内容已随表单统一提交,这里给空实现避免控制台报错
onSave: async () => {},
}
const onFileUpload = async (file) => {
+7 -2
View File
@@ -16,8 +16,13 @@
</div>
<el-alert type="info" :closable="false" style="margin-bottom: 12px">
模板文件存放于服务器 themes/{编码}/ 目录;上传 zip 或扫描目录后自动登记。
租户端(backend)只能选用已启用的模板,模板编辑仅平台端可操作。
<template #title>
<div>模板文件存放在 <b>Go 后端项目目录</b>下的 <code>go/themes/{模板编码}/</code>(相对 go 服务启动目录即 <code>themes/{模板编码}/</code>),与 platform、backend 前端项目无关。</div>
<div style="margin-top: 4px; font-weight: normal">
手动放入模板目录后点「扫描目录」即可登记;也可直接上传 zip 自动解压到该目录并登记。
租户端(backend)只能选用已启用的模板,模板上传/编辑/删除仅平台端可操作。
</div>
</template>
</el-alert>
<el-table :data="list" v-loading="loading" border style="width: 100%">