From dc8e65aedb7eab046c006d159f2a948478d5c57f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AF=9B=E7=91=9E?= Date: Mon, 18 May 2020 15:20:03 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=20=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vue.config.js b/vue.config.js index 6954b59..f2a4539 100644 --- a/vue.config.js +++ b/vue.config.js @@ -57,7 +57,9 @@ module.exports = { ), } ENV.APP_VERSION = - require('./build/updateJSON')('package.json', 'version') || '' + require('./build/updateJSON')('package.json', 'version') || + ENV.APP_VERSION || + '' for (const att in ENV) { REG_ENV.test(att) && (env[prefix + att] = JSON.stringify(ENV[att])) }