From 660950a73c08e7b96d8d36a4267150dd10600ae5 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Mon, 9 Oct 2023 19:24:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=9D=E8=AF=95=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- vue.config.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index c7c64004..f75f3436 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "@vue/compiler-sfc": "^3.0.0", "@vue/component-compiler-utils": "^3.2.0", "@vue/test-utils": "^2.2.7", - "@vue/server-renderer": "3.2.27", + "@vue/server-renderer": "~3.3.0", "babel-eslint": "^10.1.0", "babel-jest": "^26.0.0", "compression-webpack-plugin": "^8.0.1", diff --git a/vue.config.js b/vue.config.js index 68f055d3..9d6a1361 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,4 +1,5 @@ const path = require('path') +const webpack = require('webpack') function resolve (dir) { return path.join(__dirname, dir) } @@ -16,6 +17,9 @@ module.exports = { chainWebpack: (config) => { config.resolve.alias // 路径别名 .set('@', resolve('./src')) + config.plugin('webpack.DefinePlugin').use(new webpack.DefinePlugin({ + __INTLIFY_PROD_DEVTOOLS__: JSON.stringify(false) + })) }, lintOnSave: true, devServer: {