mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-11-10 11:40:53 +08:00
fix: Fix snapshot interface timeout configuration issue (#10315)
This commit is contained in:
parent
29165f0f6f
commit
4bd9c4c0fc
3 changed files with 13 additions and 6 deletions
|
|
@ -136,7 +136,7 @@ export const updateAppStoreConfig = (req: App.AppStoreConfigUpdate) => {
|
||||||
|
|
||||||
// snapshot
|
// snapshot
|
||||||
export const loadSnapshotInfo = () => {
|
export const loadSnapshotInfo = () => {
|
||||||
return http.get<Setting.SnapshotData>(`/settings/snapshot/load`, {}, TimeoutEnum.T_60S);
|
return http.get<Setting.SnapshotData>(`/settings/snapshot/load`, {}, { timeout: TimeoutEnum.T_60S });
|
||||||
};
|
};
|
||||||
export const snapshotCreate = (param: Setting.SnapshotCreate) => {
|
export const snapshotCreate = (param: Setting.SnapshotCreate) => {
|
||||||
return http.post(`/settings/snapshot`, param);
|
return http.post(`/settings/snapshot`, param);
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@
|
||||||
<el-input type="text" style="width: calc(100% - 60px)" readonly disabled v-model="form.username">
|
<el-input type="text" style="width: calc(100% - 60px)" readonly disabled v-model="form.username">
|
||||||
<template #append>
|
<template #append>
|
||||||
<el-button-group>
|
<el-button-group>
|
||||||
<CopyButton :content="form.username" />
|
<CopyButton :content="form.username" :isIcon="false" />
|
||||||
</el-button-group>
|
</el-button-group>
|
||||||
</template>
|
</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
|
|
|
||||||
|
|
@ -467,10 +467,17 @@ const selectAllImage = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const search = async () => {
|
const search = async () => {
|
||||||
const res = await loadSnapshotInfo();
|
loading.value = true;
|
||||||
|
await loadSnapshotInfo()
|
||||||
|
.then((res) => {
|
||||||
|
loading.value = false;
|
||||||
form.panelData = res.data.panelData || [];
|
form.panelData = res.data.panelData || [];
|
||||||
form.backupData = res.data.backupData || [];
|
form.backupData = res.data.backupData || [];
|
||||||
form.appData = res.data.appData || [];
|
form.appData = res.data.appData || [];
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
loading.value = false;
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
function onChangeAppData(data: any, isCheck: boolean) {
|
function onChangeAppData(data: any, isCheck: boolean) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue