mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-28 23:19:44 -08:00
fix: unfold tree if monitor is accessed directly
This commit is contained in:
parent
f3ac351d75
commit
faf3488b1e
|
@ -117,7 +117,12 @@ export default {
|
|||
}
|
||||
},
|
||||
beforeMount() {
|
||||
// this.isCollapsed = localStorage.getItem(`monitor_${this.monitor.id}_collapsed`) === "true";
|
||||
|
||||
// Always unfold if monitor is accessed directly
|
||||
if (this.monitor.childrenIDs.includes(parseInt(this.$route.params.id))) {
|
||||
this.isCollapsed = false;
|
||||
return;
|
||||
}
|
||||
|
||||
let storage = window.localStorage.getItem("monitorCollapsed");
|
||||
if (storage === null) {
|
||||
|
|
Loading…
Reference in a new issue