Browse Source

fix title

ljw 1 year ago
parent
commit
3d203971b8
2 changed files with 3 additions and 2 deletions
  1. 1 1
      index.html
  2. 2 1
      src/permission.js

+ 1 - 1
index.html

@@ -4,7 +4,7 @@
4 4
     <meta charset="UTF-8" />
5 5
     <link rel="icon" href="/favicon.ico" />
6 6
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
-    <title>Gwen-Admin</title>
7
+    <title>Rustdesk-Api-Admin</title>
8 8
   </head>
9 9
   <body>
10 10
     <div id="app"></div>

+ 2 - 1
src/permission.js

@@ -6,6 +6,7 @@ import { pinia } from '@/store'
6 6
 import NProgress from 'nprogress' // progress bar
7 7
 import 'nprogress/nprogress.css'
8 8
 import { useAppStore } from '@/store/app' // progress bar style
9
+import { T } from '@/utils/i18n'
9 10
 
10 11
 NProgress.configure({ showSpinner: false }) // NProgress Configuration
11 12
 
@@ -14,7 +15,7 @@ const routeStore = useRouteStore(pinia)
14 15
 const appStore = useAppStore(pinia)
15 16
 router.beforeEach(async (to, from, next) => {
16 17
 
17
-  document.title = (to.meta?.title || 'Rust-api-web') + '-' + appStore.setting.title
18
+  document.title = T(to.meta?.title) + ' - ' + appStore.setting.title
18 19
   NProgress.start()
19 20
 
20 21
   const token = getToken()