Merge branch 'main' into feat/headerNotice

This commit is contained in:
lrl
2021-11-16 10:04:36 +08:00
7 changed files with 26 additions and 20 deletions

View File

@@ -11,7 +11,7 @@ import { unref, watch, getCurrentInstance } from "vue";
import { deviceDetection } from "/@/utils/deviceDetection";
import screenfull from "../components/screenfull/index.vue";
import globalization from "/@/assets/svg/globalization.svg";
import { getMessage } from "/@/utils/i18n";
import { transformI18n } from "/@/utils/i18n";
const instance =
getCurrentInstance().appContext.config.globalProperties.$storage;
@@ -25,7 +25,7 @@ watch(
() => locale.value,
() => {
//@ts-ignore
document.title = getMessage(
document.title = transformI18n(
//@ts-ignore
unref(route.meta.title),
unref(route.meta.i18n)