From 2a112337834922577debd481069923e10181c6e5 Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 6 Dec 2021 14:18:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AiOpenData.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/AiOpenData.vue b/src/components/AiOpenData.vue index ff02560d..8a311a46 100644 --- a/src/components/AiOpenData.vue +++ b/src/components/AiOpenData.vue @@ -20,7 +20,8 @@ export default { ...mapActions(['injectJWeixin']) }, mounted() { - this.injectJWeixin().then(() => { + if (window?.WWOpenData) WWOpenData.bind(this.$el) + else this.injectJWeixin().then(() => { this.$nextTick(() => { WWOpenData.bind(this.$el) })