feat(runtime): fix issue with install php runtime failed (#8230)

This commit is contained in:
zhengkunwang
2025-03-24 10:41:30 +00:00
committed by GitHub
parent a617424786
commit 0bddeef63e
8 changed files with 30 additions and 5 deletions
+1
View File
@@ -628,6 +628,7 @@ export namespace Website {
type: string;
databaseID: number;
websiteID: number;
from: string;
}
export interface ChangeDatabase {
@@ -45,7 +45,11 @@
>
<PHP :id="id" v-if="tabIndex == '13'"></PHP>
</el-tab-pane>
<el-tab-pane :label="$t('logs.resource')" name="14">
<el-tab-pane
:label="$t('logs.resource')"
name="14"
v-if="website.type === 'runtime' || website.type === 'static'"
>
<Resource :id="id" v-if="tabIndex == '14'"></Resource>
</el-tab-pane>
<el-tab-pane :label="$t('website.other')" name="12">
@@ -23,7 +23,12 @@
>
<div class="flex justify-between items-center">
<span>{{ item.name }}</span>
<el-tag>{{ item.type }}</el-tag>
<div>
<el-tag>{{ item.type }}</el-tag>
<el-tag class="ml-1">
{{ item.from === 'local' ? $t('commons.table.local') : $t('database.remote') }}
</el-tag>
</div>
</div>
</el-option>
</el-select>
+5 -2
View File
@@ -272,7 +272,7 @@ const shortcuts = [
{
text: useI18n().t('website.ever'),
value: () => {
return new Date('9999-12-31');
return new Date('2006-01-02');
},
},
{
@@ -438,7 +438,10 @@ const pickerVisibility = (visibility: boolean, row: any) => {
};
const updateWebsitConfig = (row: any) => {
const reqDate = dateFormatSimple(row.expireDate);
let reqDate = dateFormatSimple(row.expireDate);
if (reqDate == '2006-01-02') {
reqDate = '9999-12-31';
}
const req = {
id: row.id,
primaryDomain: row.primaryDomain,