mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-24 06:27:37 +08:00
fix: 解决重定向切换 404 没有消除名称字段校验结果的问题 (#1841)
This commit is contained in:
parent
5944f67823
commit
5f357db1e1
1 changed files with 2 additions and 0 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue