Fix the warning and error

This commit is contained in:
Marshu 2025-04-20 22:02:47 +08:00
parent 7e9dc81999
commit a41d674eb4

View file

@ -202,10 +202,6 @@ export default {
return (this.$root.publicGroupList.length >= 2); return (this.$root.publicGroupList.length >= 2);
} }
}, },
created() {
// Initialize sort settings
this.initializeSortSettings();
},
watch: { watch: {
// Watch for changes in heartbeat list, reapply sorting // Watch for changes in heartbeat list, reapply sorting
"$root.heartbeatList": { "$root.heartbeatList": {
@ -235,6 +231,10 @@ export default {
deep: true, deep: true,
}, },
}, },
created() {
// Initialize sort settings
this.initializeSortSettings();
},
mounted() { mounted() {
// Load sort settings from URL // Load sort settings from URL
this.loadSortSettingsFromURL(); this.loadSortSettingsFromURL();