From 54ee4d9db3f688fb2884f7d9602068c7c84e8792 Mon Sep 17 00:00:00 2001 From: liyang <1711467488@qq.com> Date: Mon, 2 Jul 2018 12:07:44 +0800 Subject: [PATCH] no message Former-commit-id: 96250187c533034716b9e2bcba61d3b3ee75c5de [formerly 96250187c533034716b9e2bcba61d3b3ee75c5de [formerly 96250187c533034716b9e2bcba61d3b3ee75c5de [formerly 96250187c533034716b9e2bcba61d3b3ee75c5de [formerly 5d5f3951bf5ce9bed72bba857d5efc7be28d0d0f [formerly d51ea59b08fe986a2a3bf20ecaf80d39f73d226c]]]]] Former-commit-id: c65de2b5ba48292ae13ddfe7887ed785df9a0706 Former-commit-id: 7af23ce341995319ff8e438109a5f731f5dd575a Former-commit-id: d598da797839b94a32d143bac7844611fa9643cd [formerly 0e1163b74e2561173fa4b368f8cba552132f9b3e] Former-commit-id: 7bb3c63887ea19e35b6c53754f0aad4aa7cca198 Former-commit-id: b64f421901a8e5448b1d73985117d3bd58024337 Former-commit-id: e000fd19bce74cc3580f50073b3ede2a0eff1a4b Former-commit-id: 8fc3d52f3d7f60423f9f1ad22d2a182b198b71ff Former-commit-id: 43812b0cfb692dc05964da5d4bc70d88b55df5aa --- src/main.js | 8 +++++--- src/pages/demo/plugins/build/index.vue | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main.js b/src/main.js index ad0b5975..55579401 100755 --- a/src/main.js +++ b/src/main.js @@ -75,7 +75,7 @@ Vue.use(bigdataTable) Vue.config.productionTip = false -Vue.prototype.$env = process.env.NODE_ENV === 'development' +Vue.prototype.$env = process.env.NODE_ENV Vue.prototype.$assetsPublicPath = process.env.NODE_ENV === 'development' ? buildConfig.dev.assetsPublicPath : buildConfig.build.assetsPublicPath @@ -92,8 +92,10 @@ new Vue({ this.getAllTagFromRoutes() }, mounted () { - // D2Admin 检查更新 - util.checkUpdate(this) + // D2Admin 开发环境检查更新 + if (this.$env === 'development') { + util.checkUpdate(this) + } }, methods: { /** diff --git a/src/pages/demo/plugins/build/index.vue b/src/pages/demo/plugins/build/index.vue index efd29a22..34640cad 100644 --- a/src/pages/demo/plugins/build/index.vue +++ b/src/pages/demo/plugins/build/index.vue @@ -1,6 +1,6 @@ \ No newline at end of file