-
Notifications
You must be signed in to change notification settings - Fork 2.9k
fix: Fixed the issue of failing to update reverse proxy files #7910
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 |
|---|---|---|
|
|
@@ -46,6 +46,9 @@ interface LogProps { | |
| tail?: boolean; | ||
| taskID?: string; | ||
| colorMode?: string; | ||
| taskType?: string; | ||
| taskOperate?: string; | ||
| resourceID?: number; | ||
| } | ||
|
|
||
| const props = defineProps({ | ||
|
|
@@ -57,6 +60,9 @@ const props = defineProps({ | |
| name: '', | ||
| tail: false, | ||
| colorMode: 'nginx', | ||
| taskType: '', | ||
| taskOperate: '', | ||
| resourceID: 0, | ||
| }), | ||
| }, | ||
| defaultButton: { | ||
|
|
@@ -106,6 +112,9 @@ const readReq = reactive({ | |
| pageSize: 500, | ||
| latest: false, | ||
| taskID: '', | ||
| taskType: '', | ||
| taskOperate: '', | ||
| resourceID: 0, | ||
| }); | ||
| const isLoading = ref(false); | ||
| const end = ref(false); | ||
|
|
@@ -182,6 +191,9 @@ const getContent = async (pre: boolean) => { | |
| readReq.type = props.config.type; | ||
| readReq.name = props.config.name; | ||
| readReq.taskID = props.config.taskID; | ||
| readReq.taskType = props.config.taskType; | ||
| readReq.taskOperate = props.config.taskOperate; | ||
| readReq.resourceID = props.config.resourceID; | ||
| if (readReq.page < 1) { | ||
| readReq.page = 1; | ||
| } | ||
|
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. I cannot perform this task as the provided code snippet is not included. Please provide the specific code for examination and analysis. |
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -554,6 +554,7 @@ import { v4 as uuidv4 } from 'uuid'; | |
| import { dateFormatSimple, getProvider, getAccountName } from '@/utils/util'; | ||
| import { Website } from '@/api/interface/website'; | ||
| import DomainCreate from '@/views/website/website/domain-create/index.vue'; | ||
| import { getPathByType } from '@/api/modules/files'; | ||
|
|
||
| const websiteForm = ref<FormInstance>(); | ||
|
|
||
|
|
@@ -818,12 +819,14 @@ const getRuntimes = async () => { | |
| } catch (error) {} | ||
| }; | ||
|
|
||
| const acceptParams = async (installPath: string) => { | ||
| const acceptParams = async () => { | ||
| website.value = initData(); | ||
| if (websiteForm.value) { | ||
| websiteForm.value.resetFields(); | ||
| } | ||
| staticPath.value = installPath + '/www/sites/'; | ||
| getPathByType('websiteDir').then((res) => { | ||
| staticPath.value = res.data + '/sites/'; | ||
| }); | ||
|
|
||
| const res = await getGroupList('website'); | ||
| groups.value = res.data; | ||
|
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. The difference between this code snippet and the provided code for 2023 is that it has an import statement for Here's a comparison of what remains: {
"code": "",
"Differences": {
},
"Youthful Code Snippet": true,
}Please let me know if you need further assistance or corrections. |
||
|
|
||
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.
The given code does not contain any obvious irregularities, potential issues, or optimization suggestions.