fix: 解决终端连接无法正常打开的问题 (#2710)

This commit is contained in:
ssongliu 2023-10-27 17:19:04 +08:00 committed by GitHub
parent e952b77334
commit 32c6826496
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -41,7 +41,7 @@ type CommonRecover struct {
type RecordSearch struct {
PageInfo
Type string `json:"type" validate:"required"`
Name string `json:"name" validate:"required"`
Name string `json:"name"`
DetailName string `json:"detailName"`
}

View File

@ -42,6 +42,6 @@ type DeleteByName struct {
}
type OperationWithNameAndType struct {
Name string `json:"name" validate:"required"`
Name string `json:"name"`
Type string `json:"type" validate:"required"`
}

View File

@ -1,11 +1,11 @@
{
"name": "panel",
"name": "1Panel-Frontend",
"version": "1.7",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "panel",
"name": "1Panel-Frontend",
"version": "1.7",
"dependencies": {
"@codemirror/lang-javascript": "^6.1.0",

View File

@ -40,7 +40,7 @@ const acceptParams = (props: WsProps) => {
if (props.error.length !== 0) {
initError(props.error);
} else {
initCmd.value = props.initCmd;
initCmd.value = props.initCmd || '';
init(props.endpoint, props.args);
}
});