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:
parent
be3ffb945c
commit
8bf9d8700b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user