diff --git a/.eslintrc.js b/.eslintrc.js index 25a21bd..6ce57a8 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,4 +1,5 @@ module.exports = { + root: true, env: { browser: true, es2021: true, diff --git a/package.json b/package.json index f11f3c3..8fb109c 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "cropperjs": "^1.5.11", "echarts": "^5.0.2", "echarts-wordcloud": "^2.0.0", - "element-plus": "^1.0.2-beta.36", + "element-plus": "^1.0.2-beta.39", "mitt": "^2.1.0", "nprogress": "^0.2.0", "print-js": "^1.6.0", @@ -22,11 +22,11 @@ "screenfull": "^5.1.0", "sortablejs": "^1.13.0", "vue": "^3.0.5", - "vue-i18n": "^9.0.0", + "vue-i18n": "^9.1.3", "vue-router": "^4.0.2", "vue-web-screen-shot": "^1.1.8", "vuex": "^4.0.0-rc.2", - "wangeditor": "^4.6.12" + "wangeditor": "^4.6.14" }, "devDependencies": { "@types/axios": "^0.14.0", @@ -34,17 +34,17 @@ "@types/node": "^14.14.37", "@types/nprogress": "^0.2.0", "@types/sortablejs": "^1.10.6", - "@typescript-eslint/eslint-plugin": "^4.20.0", - "@typescript-eslint/parser": "^4.20.0", + "@typescript-eslint/eslint-plugin": "^4.21.0", + "@typescript-eslint/parser": "^4.21.0", "@vitejs/plugin-vue": "^1.2.1", - "@vue/compiler-sfc": "^3.0.10", + "@vue/compiler-sfc": "^3.0.11", "dotenv": "^8.2.0", "eslint": "^7.23.0", "eslint-plugin-vue": "^7.8.0", "prettier": "^2.2.1", "sass": "^1.32.8", "sass-loader": "^11.0.1", - "typescript": "^4.2.3", + "typescript": "^4.2.4", "vite": "^2.1.5", "vue-eslint-parser": "^7.6.0" } diff --git a/vite.config.ts b/vite.config.ts index c840f95..613a940 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -39,6 +39,11 @@ const viteConfig: UserConfig = { minify: 'esbuild', sourcemap: false, }, + define: { + __VUE_I18N_LEGACY_API__: JSON.stringify(false), + __VUE_I18N_FULL_INSTALL__: JSON.stringify(false), + __INTLIFY_PROD_DEVTOOLS__: JSON.stringify(false), + }, }; export default viteConfig;