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

View File

@@ -1,10 +1,10 @@
import { createI18n } from "vue-i18n";
import { useAppStore } from "@/store/modules/app";
import { useAppStoreHook } from "@/store/modules/app";
// 本地语言包
import enLocale from "./package/en";
import zhCnLocale from "./package/zh-cn";
const appStore = useAppStore();
const appStore = useAppStoreHook();
const messages = {
"zh-cn": {