|
@@ -20,6 +20,7 @@ import { compile } from 'path-to-regexp'
|
|
|
import router from '@/router'
|
|
|
|
|
|
const currentRoute = useRoute()
|
|
|
+const { t } = useI18n()
|
|
|
const pathCompile = (path) => {
|
|
|
const { params } = currentRoute
|
|
|
const toPath = compile(path)
|
|
@@ -44,7 +45,7 @@ function isDashboard(route) {
|
|
|
if (!name) {
|
|
|
return false
|
|
|
}
|
|
|
- return name.toString().trim().toLocaleLowerCase() === 'Dashboard'.toLocaleLowerCase()
|
|
|
+ return name.toString().trim().toLocaleLowerCase() === 'home'.toLocaleLowerCase()
|
|
|
}
|
|
|
|
|
|
function handleLink(item) {
|