perf: 优化国际化

This commit is contained in:
xiaoxian521
2021-12-29 11:21:59 +08:00
parent d94fb0ef06
commit 73705eb0e4
43 changed files with 349 additions and 296 deletions

View File

@@ -1,3 +1,4 @@
import { $t } from "/@/plugins/i18n";
import Layout from "/@/layout/index.vue";
const remainingRouter = [
@@ -6,7 +7,7 @@ const remainingRouter = [
name: "login",
component: () => import("/@/views/login.vue"),
meta: {
title: "message.hslogin",
title: $t("menus.hslogin"),
showLink: false,
i18n: true,
rank: 101
@@ -18,7 +19,7 @@ const remainingRouter = [
component: Layout,
meta: {
icon: "HomeFilled",
title: "message.hshome",
title: $t("menus.hshome"),
i18n: true,
showLink: false,
rank: 104