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 { type RecordSearch struct {
PageInfo PageInfo
Type string `json:"type" validate:"required"` Type string `json:"type" validate:"required"`
Name string `json:"name" validate:"required"` Name string `json:"name"`
DetailName string `json:"detailName"` DetailName string `json:"detailName"`
} }

View file

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

View file

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

View file

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