refactor(main.ts): ♻️ 抽离一些功能为vue插件

This commit is contained in:
cshaptx4869
2024-03-01 21:04:04 +08:00
parent 8c12cfecbe
commit c422c27d94
9 changed files with 114 additions and 77 deletions

7
src/plugins/i18n.ts Normal file
View File

@@ -0,0 +1,7 @@
// 国际化
import i18n from "@/lang/index";
import type { App } from "vue";
export function setupI18n(app: App<Element>) {
app.use(i18n);
}