fix: 导出备份配置调整

This commit is contained in:
TsMask
2025-02-11 18:33:47 +08:00
parent f188e193f3
commit 8bfa73a67a
2 changed files with 92 additions and 94 deletions

View File

@@ -1,3 +1,5 @@
import { CACHE_SESSION_CRYPTO_API } from '@/constants/cache-keys-constants';
import { sessionGet } from '@/utils/cache-session-utils';
import { request } from '@/plugins/http-fetch';
/**
@@ -62,6 +64,7 @@ export function updateFTPInfo(data: Record<string, any>) {
url: `/lm/table/ftp`,
method: 'post',
data: data,
crypto: sessionGet(CACHE_SESSION_CRYPTO_API) !== 'false',
});
}
@@ -74,6 +77,7 @@ export function getFTPInfo() {
return request({
url: `/lm/table/ftp`,
method: 'get',
crypto: sessionGet(CACHE_SESSION_CRYPTO_API) !== 'false',
});
}