diff --git a/backend/utils/nginx/parser/parser.go b/backend/utils/nginx/parser/parser.go index 7ebb756a5..46a48efa1 100644 --- a/backend/utils/nginx/parser/parser.go +++ b/backend/utils/nginx/parser/parser.go @@ -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 diff --git a/frontend/src/views/app-store/installed/index.vue b/frontend/src/views/app-store/installed/index.vue index e84777378..769e86c27 100644 --- a/frontend/src/views/app-store/installed/index.vue +++ b/frontend/src/views/app-store/installed/index.vue @@ -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 = '';