mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 16:54:04 +00:00
fix: unfold tree if monitor is accessed directly
This commit is contained in:
parent
f3ac351d75
commit
faf3488b1e
1 changed files with 6 additions and 1 deletions
|
@ -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