1
0
mirror of https://github.com/ZeroCatDev/Classworks.git synced 2025-07-02 00:59:23 +00:00

Update MigrationTool.vue to initialize classNumber, serverUrl, and migrationType from server settings during component mount. This improves configuration management and aligns with recent updates to server settings.

This commit is contained in:
SunWuyuan 2025-05-11 12:13:52 +08:00
parent b82a553b1d
commit 3e78e7f60d
No known key found for this signature in database
GPG Key ID: A6A54CF66F56BB64

View File

@ -267,6 +267,7 @@ export default {
};
},
computed: {
displayItems() {
return this.migrationType === "local"
? this.localDbItems
@ -284,6 +285,9 @@ export default {
async mounted() {
try {
await this.initMachineId();
this.classNumber = getSetting("server.classNumber");
this.serverUrl = getSetting("server.domain");
this.migrationType = getSetting("server.provider");
} catch (error) {
console.error("初始化设备ID失败:", error);
}