feat: 合并Gin_Vue
This commit is contained in:
@@ -287,7 +287,7 @@ let backState: ModalStateType = reactive({
|
||||
backFileTree: [],
|
||||
},
|
||||
fromLoading: true,
|
||||
confirmLoading: false,
|
||||
confirmLoading: true,
|
||||
});
|
||||
|
||||
/**日志备份对象保存 */
|
||||
@@ -325,20 +325,16 @@ function fnFormBackFinish() {
|
||||
|
||||
/**日志手动备份文件列表 */
|
||||
function fnBackFileList() {
|
||||
backupFileList()
|
||||
.then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
if (res.data.name === '') {
|
||||
backState.from.backFileTree = [];
|
||||
} else {
|
||||
backState.from.backFileTree = [res.data];
|
||||
}
|
||||
backState.fromLoading = false;
|
||||
backupFileList().then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
if (res.data.name === '') {
|
||||
backState.from.backFileTree = [];
|
||||
} else {
|
||||
backState.from.backFileTree = [res.data];
|
||||
}
|
||||
})
|
||||
.finally(() => {
|
||||
backState.confirmLoading = false;
|
||||
});
|
||||
backState.fromLoading = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**日志备份文件下载 */
|
||||
|
||||
Reference in New Issue
Block a user