Enhance App.vue, axios.js, MigrationTool.vue, index.vue, settings.vue, and related utilities to support namespace management and improve configuration handling. Add namespace password to axios request headers, load namespace info on App mount, and update settings structure to include namespace settings. Refactor dataProvider to utilize new kvLocalProvider and kvServerProvider for data operations, ensuring better separation of concerns and improved error handling.

This commit is contained in:
SunWuyuan
2025-05-18 10:54:39 +08:00
parent 6d6e4a27a1
commit c42c878ac8
12 changed files with 1249 additions and 441 deletions
+3 -3
View File
@@ -681,7 +681,7 @@ export default {
// 批量导入配置数据
const configResponse = await axios.post(
`${this.targetServerUrl}/${this.machineId}/import/batch-import`,
`${this.targetServerUrl}/${this.machineId}/_batchimport`,
batchData,
{
headers: this.getRequestHeaders(),
@@ -798,7 +798,7 @@ export default {
// 批量导入配置数据
const configResponse = await axios.post(
`${this.targetServerUrl}/${this.machineId}/import/batch-import`,
`${this.targetServerUrl}/${this.machineId}/_batchimport`,
batchData,
{
headers: this.getRequestHeaders(),
@@ -890,7 +890,7 @@ export default {
// 发送批量请求
if (Object.keys(batchPayload).length > 0) {
const response = await axios.post(
`${this.targetServerUrl}/${this.machineId}/import/batch-import`,
`${this.targetServerUrl}/${this.machineId}/_batchimport`,
batchPayload,
{
headers: this.getRequestHeaders(),