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:
parent
b82a553b1d
commit
3e78e7f60d
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user