mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-18 22:22:59 +08:00
fix: 解决网站配置文件更新之后参数丢失的问题 (#4231)
Refs https://github.com/1Panel-dev/1Panel/issues/4171
This commit is contained in:
parent
0e159f944a
commit
d916f2ba6f
@ -61,7 +61,7 @@ func NewParserFromLexer(lexer *lexer) *Parser {
|
||||
|
||||
parser.directiveWrappers = map[string]func(*components.Directive) components.IDirective{
|
||||
"server": func(directive *components.Directive) components.IDirective {
|
||||
return parser.parseUpstreamServer(directive)
|
||||
return parser.wrapServer(directive)
|
||||
},
|
||||
}
|
||||
|
||||
@ -113,7 +113,7 @@ parsingloop:
|
||||
case p.curTokenIs(flag.LuaCode):
|
||||
context.IsLuaBlock = true
|
||||
context.LiteralCode = p.currentToken.Literal
|
||||
case p.curTokenIs(flag.Keyword):
|
||||
case p.curTokenIs(flag.Keyword) || p.curTokenIs(flag.QuotedString):
|
||||
s, err := p.parseStatement()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
@ -390,7 +390,7 @@ const changeTag = (key: string) => {
|
||||
searchReq.tags = [key];
|
||||
}
|
||||
const index = tags.value.findIndex((tag) => tag.key === key);
|
||||
if (index > 5) {
|
||||
if (index > 6) {
|
||||
moreTag.value = key;
|
||||
} else {
|
||||
moreTag.value = '';
|
||||
|
Loading…
Reference in New Issue
Block a user