mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-01 01:25:45 -04:00
Fix #1016, .at() is not support in Safari
This commit is contained in:
parent
f9cd0eb084
commit
a4841eb8aa
@ -49,8 +49,9 @@ export default {
|
||||
|
||||
computed: {
|
||||
currentPage() {
|
||||
let pathEnd = useRoute().path.split("/").at(-1);
|
||||
if (pathEnd == "settings" || pathEnd == null) {
|
||||
let pathSplit = useRoute().path.split("/");
|
||||
let pathEnd = pathSplit[pathSplit.length - 1];
|
||||
if (!pathEnd || pathEnd === "settings") {
|
||||
return "general";
|
||||
}
|
||||
return pathEnd;
|
||||
|
Loading…
Reference in New Issue
Block a user