提交 eaae95b2 编写于 作者: 麦壳饼's avatar 麦壳饼

fix #1060

上级 ff6269ac
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
"echarts": "^5.4.2", "echarts": "^5.4.2",
"echarts-gl": "^2.0.9", "echarts-gl": "^2.0.9",
"echarts-wordcloud": "^2.0.0", "echarts-wordcloud": "^2.0.0",
"element-plus": "^2.3.3", "element-plus": "^2.3.8",
"js-cookie": "^3.0.1", "js-cookie": "^3.0.1",
"jsplumb": "^2.15.6", "jsplumb": "^2.15.6",
"lodash-es": "^4.17.21", "lodash-es": "^4.17.21",
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
export {} export {}
declare global { declare global {
const EffectScope: typeof import('vue')['EffectScope'] const EffectScope: typeof import('vue')['EffectScope']
const ElMessage: typeof import('element-plus/es')['ElMessage']
const acceptHMRUpdate: typeof import('pinia')['acceptHMRUpdate'] const acceptHMRUpdate: typeof import('pinia')['acceptHMRUpdate']
const computed: typeof import('vue')['computed'] const computed: typeof import('vue')['computed']
const createApp: typeof import('vue')['createApp'] const createApp: typeof import('vue')['createApp']
......
...@@ -2,14 +2,11 @@ import { createI18n } from 'vue-i18n'; ...@@ -2,14 +2,11 @@ import { createI18n } from 'vue-i18n';
import pinia from '/@/stores/index'; import pinia from '/@/stores/index';
import { storeToRefs } from 'pinia'; import { storeToRefs } from 'pinia';
import { useThemeConfig } from '/@/stores/themeConfig'; import { useThemeConfig } from '/@/stores/themeConfig';
import zhcnLocale from 'element-plus/lib/locale/lang/zh-cn'; import zhcnLocale from "element-plus/dist/locale/zh-cn.mjs";
import enLocale from 'element-plus/lib/locale/lang/en'; import enLocale from "element-plus/dist/locale/en.mjs";
import zhtwLocale from 'element-plus/lib/locale/lang/zh-tw';
import nextZhcn from '/@/i18n/lang/zh-cn'; import nextZhcn from '/@/i18n/lang/zh-cn';
import nextEn from '/@/i18n/lang/en'; import nextEn from '/@/i18n/lang/en';
import nextZhtw from '/@/i18n/lang/zh-tw'; import nextZhtw from '/@/i18n/lang/zh-tw';
import pagesLoginZhcn from '/@/i18n/pages/login/zh-cn'; import pagesLoginZhcn from '/@/i18n/pages/login/zh-cn';
import pagesLoginEn from '/@/i18n/pages/login/en'; import pagesLoginEn from '/@/i18n/pages/login/en';
import pagesLoginZhtw from '/@/i18n/pages/login/zh-tw'; import pagesLoginZhtw from '/@/i18n/pages/login/zh-tw';
......
...@@ -63,9 +63,8 @@ const viteConfig = defineConfig((mode: ConfigEnv) => { ...@@ -63,9 +63,8 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
hmr: true, hmr: true,
optimizeDeps: { optimizeDeps: {
include: [ include: [
'element-plus/lib/locale/lang/zh-cn', 'element-plus/dist/locale/zh-cn.mjs',
'element-plus/lib/locale/lang/en', 'element-plus/dist/locale/en.mjs',
'element-plus/lib/locale/lang/zh-tw',
'monaco-editor/esm/vs/language/json/json.worker', 'monaco-editor/esm/vs/language/json/json.worker',
'monaco-editor/esm/vs/language/css/css.worker', 'monaco-editor/esm/vs/language/css/css.worker',
'monaco-editor/esm/vs/language/html/html.worker', 'monaco-editor/esm/vs/language/html/html.worker',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册