change name

This commit is contained in:
hbrwang 2020-12-04 10:36:32 +08:00
parent 76b692e9e0
commit fc6ca93f48
3 changed files with 10 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# frps
# frps & frpc
## Project setup

View File

@ -1,5 +1,5 @@
{
"name": "frps-dashboard",
"name": "frp-dashboard",
"description": "A dashboard for frp server.",
"author": "fatedier",
"private": true,

View File

@ -143,6 +143,13 @@ const filterRoutes = function(routes) {
export const routes = filterRoutes(allRoutes)
export default new Router({
const router = new Router({
routes
})
router.beforeEach(async (to, from, next) => {
document.title = `${to.meta.title || 'dashboard'} - frp`
next()
})
export default router