From 7f5b781c9b476eb1c74dd637cbf9ee54bc71acfd Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期六, 08 三月 2025 11:16:59 +0800 Subject: [PATCH] 页面跳转更新 --- src/locales/setupI18n.ts | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/locales/setupI18n.ts b/src/locales/setupI18n.ts index 80f9c6c..33842d1 100644 --- a/src/locales/setupI18n.ts +++ b/src/locales/setupI18n.ts @@ -1,5 +1,13 @@ +/* + * @Description: file content + * @Author: Ben Lin + * @version: + * @Date: 2024-06-18 15:09:47 + * @LastEditors: Ben Lin + * @LastEditTime: 2024-07-17 04:31:26 + */ import type { App } from 'vue'; -import type { I18nOptions } from 'vue-i18n'; +import type { I18n, I18nOptions } from 'vue-i18n'; import { createI18n } from 'vue-i18n'; import { setHtmlPageLang, setLoadLocalePool } from './helper'; @@ -39,6 +47,6 @@ // setup i18n instance with glob export async function setupI18n(app: App) { const options = await createI18nOptions(); - i18n = createI18n(options); + i18n = createI18n(options) as I18n; app.use(i18n); } -- Gitblit v1.9.3