mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 06:32:59 +08:00
fix: 解决重定向切换 404 没有消除名称字段校验结果的问题 (#1841)
This commit is contained in:
parent
5944f67823
commit
5f357db1e1
@ -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…
Reference in New Issue
Block a user