fix: 编辑插件author不允许出现符号

This commit is contained in:
xiaojunnuo
2026-01-20 11:18:10 +08:00
parent 5bfc2c4a9b
commit 5ea2b09dc3
3 changed files with 6 additions and 4 deletions

View File

@@ -79,9 +79,9 @@ httpRequest:https://dms.xxxxx.com:5001/webapi/entry.cgi, method:get
请求出错: status:ECONNABORTED, statusText:ECONNABORTED
Axio:sError: timeout of 120000ms exceeded
```
可能的原因是是您的dsm域名指向的局域网地址在容器内无法访问,导致登录超时
可能的原因是是您的dsm域名指向的ip地址在容器内无法访问,导致登录超时
可以通过配置 域名映射来解决
可以通过配置域名映射来解决
1. 获取群晖dsm内部地址
进入certd后台->系统管理->网络测试, 一般会看到 `172.xx.0.2` 记住这个xx是多少
![](./images/nettest.png)

View File

@@ -228,7 +228,7 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
rules: [
{ required: true },
{
type: "regexp",
type: "pattern",
pattern: /^[a-zA-Z][a-zA-Z0-9]+$/,
message: t("certd.pluginNameRuleMsg"),
},
@@ -257,7 +257,7 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
rules: [
{ required: true },
{
type: "regexp",
type: "pattern",
pattern: /^[a-zA-Z][a-zA-Z0-9]+$/,
message: t("certd.authorRuleMsg"),
},

View File

@@ -286,6 +286,8 @@ export class PluginService extends BaseService<PluginEntity> {
dnsProviderRegistry.unRegister(name)
} else if (item.pluginType === "notification") {
notificationRegistry.unRegister(name)
}else if (item.pluginType === "addon") {
addonRegistry.unRegister(name)
} else {
logger.warn(`不支持的插件类型:${item.pluginType}`)
}