-
Notifications
You must be signed in to change notification settings - Fork 2.9k
fix: Fix issue with custom rules being lost after restarting OpenResty. #8929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,9 @@ | |
| > | ||
| <template #content> | ||
| <el-tabs tab-position="left" v-model="index"> | ||
| <el-tab-pane :label="$t('php.containerConfig')" name="6"> | ||
| <Container :id="runtime.id" v-if="index == '6'"></Container> | ||
| </el-tab-pane> | ||
| <el-tab-pane :label="$t('website.updateConfig')" name="0"> | ||
| <Config :id="runtime.id" v-if="index == '0'"></Config> | ||
| </el-tab-pane> | ||
|
|
@@ -26,9 +29,6 @@ | |
| <el-tab-pane :label="'FPM ' + $t('website.source')" name="3"> | ||
| <PHP :id="runtime.id" v-if="index == '3'" :type="'fpm'"></PHP> | ||
| </el-tab-pane> | ||
| <el-tab-pane :label="$t('php.containerConfig')" name="6"> | ||
| <Container :id="runtime.id" v-if="index == '6'"></Container> | ||
| </el-tab-pane> | ||
| </el-tabs> | ||
| </template> | ||
| </DrawerPro> | ||
|
|
@@ -44,7 +44,7 @@ import PHP from './php-fpm/index.vue'; | |
| import Performance from './performance/index.vue'; | ||
| import Container from './container/index.vue'; | ||
|
|
||
| const index = ref('0'); | ||
| const index = ref('6'); | ||
| const open = ref(false); | ||
| const runtime = ref({ | ||
| name: '', | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is an inconsistency in the Before Change: <el-tab-pane :label="$t('website.updateConfig')" name="0">After Change: <el-tab-pane :label="'FPM ' + $t('website.source')" name="3">The Additionally, you might consider setting default values based on certain conditions (e.g., if user preferences or data dictate a specific tab should open by default). Optimizations could involve reducing repetition within components like |
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is an issue with this code related to the restart operation when
install.App.Keyequals "openresty". The function attempts to get all websites usingwebsiteRepo.GetBy(), which assumes there's a method like that defined on the repository interface.Here's what needs fixing:
Replace it with the actual implementation from your website repository. Assuming you need data from a specific table or query condition, modify it accordingly:
This ensures better correctness depending on how your website retrieval logic works and prevents runtime errors caused by missing or incorrect function calls.