mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-28 14:08:49 +03:00
Fix #1016, .at() is not support in Safari
This commit is contained in:
parent
f9cd0eb084
commit
a4841eb8aa
1 changed files with 3 additions and 2 deletions
|
@ -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 a new issue