feat: URL trailing slashes remove + All pages basepath
This commit is contained in:
1 parent
db16eb72f0
commit
f44d0a3c44
6 files changed
+46
-4
No files matched your search
@@ -32,7 +32,11 @@ module.exports = (alerts, socket) => {
|
||||
}
|
||||
},
|
||||
mounted: function () {
|
||||
this.fetch('')
|
||||
let basePath = window.location.pathname.slice(0, -4)
|
||||
if (basePath.length > 1) {
|
||||
basePath = basePath.slice(1)
|
||||
}
|
||||
this.fetch(basePath)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user