From 0b5eed393cfe0dbe9abc7f20b96ab7cde6c656ae Mon Sep 17 00:00:00 2001 From: liyang <1711467488@qq.com> Date: Thu, 15 Nov 2018 22:22:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=87=E5=AE=9A=E6=A8=A1=E5=BC=8F=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: d743720e22fa2d6ec8578dfe079fe2fbfbefb883 [formerly d743720e22fa2d6ec8578dfe079fe2fbfbefb883 [formerly d743720e22fa2d6ec8578dfe079fe2fbfbefb883 [formerly d743720e22fa2d6ec8578dfe079fe2fbfbefb883 [formerly b355ddb4468cad60e2d07d454eb39e692fd4f8ed [formerly 19430a212774908b8f5cb4a735aa33b00969c57a]]]]] Former-commit-id: 5666f0229a7be366aa98ffbdee287566a7ead992 Former-commit-id: ec56290ff1906ec1d9c8253066174501627e1221 Former-commit-id: 58031691af565e514ae966123e9c2cd3b1dc2f62 [formerly 06e5cd3b1138934d063cd8e31972bfa7346ae4da] Former-commit-id: d7f7b04bb6f826921f36c9f9dbda2fa37761437a Former-commit-id: fc5e355ffede3a4ae468c19a32b5ccd796c9041e Former-commit-id: c15d5b86dff42bfa23fe55e1adf901cd0407f631 Former-commit-id: d4f0e11b1c0a2beefe7190666108289c76d4e195 Former-commit-id: d8f502be77b16eac9be3ac435402840b22b01864 --- src/components/d2-container/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/d2-container/index.js b/src/components/d2-container/index.js index 9acee8e9..cfc14871 100644 --- a/src/components/d2-container/index.js +++ b/src/components/d2-container/index.js @@ -53,9 +53,10 @@ export default { scroll: e => this.$emit('scroll', e) } }, slots), - h(d2Source, { + // 只在预览和开发模式下显示源码按钮 + process.env.VUE_APP_BUILD_MODE === 'TRAVIS' || process.env.NODE_ENV === 'development' ? h(d2Source, { props: this.$attrs - }) + }) : undefined ]) } }