diff --git a/src/locale/en.json b/src/locales/en.json similarity index 100% rename from src/locale/en.json rename to src/locales/en.json diff --git a/src/locale/index.ts b/src/locales/index.ts similarity index 100% rename from src/locale/index.ts rename to src/locales/index.ts diff --git a/src/locale/zh.json b/src/locales/zh.json similarity index 100% rename from src/locale/zh.json rename to src/locales/zh.json diff --git a/src/main.ts b/src/main.ts index 51f3a4a..d7328f0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,7 +1,7 @@ import { createSSRApp } from 'vue' import App from './App.vue' import store from './store' -import i18n from './locale/index' +import i18n from './locales/index' import 'virtual:svg-icons-register' import 'virtual:uno.css' diff --git a/src/utils/http.ts b/src/utils/http.ts index 3a76496..db33435 100644 --- a/src/utils/http.ts +++ b/src/utils/http.ts @@ -1,7 +1,7 @@ /* eslint-disable no-param-reassign */ import { useUserStore } from '@/store' import { UserInfo } from '@/typings' -import { translate as t } from '@/locale/index' +import { translate as t } from '@/locales/index' type Data = { code: number