|
|
@@ -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()
|