mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-22 08:00:53 +00:00
fix: 解决重定向切换 404 没有消除名称字段校验结果的问题 (#1841)
This commit is contained in:
@@ -129,7 +129,9 @@ const acceptParams = (redirectParam: Website.RedirectConfig) => {
|
||||
};
|
||||
|
||||
const changeType = (type: string) => {
|
||||
redirectForm.value?.clearValidate('name');
|
||||
if (type != '404') {
|
||||
redirect.value.name = '';
|
||||
redirect.value.redirectRoot = false;
|
||||
} else {
|
||||
redirect.value.name = '404';
|
||||
|
||||
Reference in New Issue
Block a user