fix title
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" href="/favicon.ico" />
|
<link rel="icon" href="/favicon.ico" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Gwen-Admin</title>
|
<title>Rustdesk-Api-Admin</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
|||||||
+2
-1
@@ -6,6 +6,7 @@ import { pinia } from '@/store'
|
|||||||
import NProgress from 'nprogress' // progress bar
|
import NProgress from 'nprogress' // progress bar
|
||||||
import 'nprogress/nprogress.css'
|
import 'nprogress/nprogress.css'
|
||||||
import { useAppStore } from '@/store/app' // progress bar style
|
import { useAppStore } from '@/store/app' // progress bar style
|
||||||
|
import { T } from '@/utils/i18n'
|
||||||
|
|
||||||
NProgress.configure({ showSpinner: false }) // NProgress Configuration
|
NProgress.configure({ showSpinner: false }) // NProgress Configuration
|
||||||
|
|
||||||
@@ -14,7 +15,7 @@ const routeStore = useRouteStore(pinia)
|
|||||||
const appStore = useAppStore(pinia)
|
const appStore = useAppStore(pinia)
|
||||||
router.beforeEach(async (to, from, next) => {
|
router.beforeEach(async (to, from, next) => {
|
||||||
|
|
||||||
document.title = (to.meta?.title || 'Rust-api-web') + '-' + appStore.setting.title
|
document.title = T(to.meta?.title) + ' - ' + appStore.setting.title
|
||||||
NProgress.start()
|
NProgress.start()
|
||||||
|
|
||||||
const token = getToken()
|
const token = getToken()
|
||||||
|
|||||||
Reference in New Issue
Block a user