1
0
mirror of https://github.com/ZeroCatDev/Classworks.git synced 2025-07-01 16:49:22 +00:00

Update MigrationTool.vue to include setting updates for server provider and domain based on migration target. This enhances configuration management during the migration process.

This commit is contained in:
SunWuyuan 2025-05-11 17:02:41 +08:00
parent be3ffb945c
commit 8bf9d8700b
No known key found for this signature in database
GPG Key ID: A6A54CF66F56BB64

View File

@ -226,7 +226,7 @@
<script>
import { openDB } from "idb";
import axios from "@/axios/axios";
import { getSetting } from "@/utils/settings";
import { getSetting, setSetting } from "@/utils/settings";
export default {
name: "MigrationTool",
@ -977,6 +977,12 @@ export default {
this.migrationSuccess = this.migrationStats.failed === 0;
this.showResult = true;
setSetting("server.provider", this.targetStorage);
if (this.targetStorage === "kv-server") {
setSetting("server.domain", this.targetServerUrl);
}
} catch (error) {
console.error("迁移过程出错:", error);
this.migrationSuccess = false;