diff --git a/src/apps/AppAskForm/AppAskForm.vue b/src/apps/AppAskForm/AppAskForm.vue
index 089176ef..e0be72af 100644
--- a/src/apps/AppAskForm/AppAskForm.vue
+++ b/src/apps/AppAskForm/AppAskForm.vue
@@ -33,6 +33,9 @@
onLoad () {
},
+ mounted () {
+ },
+
methods: {
onChange (e) {
this.params = e.params
diff --git a/src/apps/AppAskForm/components/List.vue b/src/apps/AppAskForm/components/List.vue
index 8d8a10d6..421db9b0 100644
--- a/src/apps/AppAskForm/components/List.vue
+++ b/src/apps/AppAskForm/components/List.vue
@@ -111,9 +111,10 @@ export default {
}
},
created() {
- this.injectJWeixin(['sendChatMessage', 'selectEnterpriseContact'])
- this.$dict.load(['questionnaireStatus', 'questionnaireType', 'questionnaireFieldType']).then(() => {
- this.getList()
+ this.injectJWeixin(['sendChatMessage', 'selectEnterpriseContact']).then(() => {
+ this.$dict.load(['questionnaireStatus', 'questionnaireType', 'questionnaireFieldType']).then(() => {
+ this.getList()
+ })
})
},
diff --git a/src/apps/AppMeetingNotice/components/detail.vue b/src/apps/AppMeetingNotice/components/detail.vue
index 796fc855..87b94242 100644
--- a/src/apps/AppMeetingNotice/components/detail.vue
+++ b/src/apps/AppMeetingNotice/components/detail.vue
@@ -220,7 +220,9 @@
}
},
created() {
- this.getDetail();
+ this.injectJWeixin(['sendChatMessage']).then(() => {
+ this.getDetail()
+ })
},
mounted() {
document.title = "会议详情"
diff --git a/src/apps/AppNotification/AppNotification.vue b/src/apps/AppNotification/AppNotification.vue
index 015b1da9..33279173 100644
--- a/src/apps/AppNotification/AppNotification.vue
+++ b/src/apps/AppNotification/AppNotification.vue
@@ -73,6 +73,7 @@ import AiEmpty from "../../components/AiEmpty";
import AiTopFixed from "../../components/AiTopFixed";
import {add, detail, read} from "./components";
import AiOpenData from "../../components/AiOpenData";
+ import {mapActions} from "vuex";
export default {
name: "AppNotification",
@@ -139,6 +140,7 @@ export default {
},
methods: {
+ ...mapActions(['injectJWeixin']),
emitShow() {
const {id} = this.$route.query
if (id) {
@@ -150,7 +152,9 @@ export default {
this.showList = false;
}
this.current = 1;
- this.getList();
+ this.injectJWeixin(['sendChatMessage']).then(() => {
+ this.getList();
+ })
},
emitReachBottom() {
this.current = this.current + 1;
diff --git a/src/apps/AppNotification/components/detail.vue b/src/apps/AppNotification/components/detail.vue
index c164f701..8ee040b6 100644
--- a/src/apps/AppNotification/components/detail.vue
+++ b/src/apps/AppNotification/components/detail.vue
@@ -77,7 +77,9 @@
}
},
created() {
- this.getDetail();
+ this.injectJWeixin(['sendChatMessage']).then(() => {
+ this.getDetail()
+ })
},
mounted() {
diff --git a/src/components/AiOpenData.vue b/src/components/AiOpenData.vue
index 98674d0a..ae909e28 100644
--- a/src/components/AiOpenData.vue
+++ b/src/components/AiOpenData.vue
@@ -19,8 +19,9 @@ export default {
methods: {
...mapActions(['injectJWeixin']),
bindWWOpenData() {
- if (window?.WWOpenData) WWOpenData.bind(this.$el)
- else this.injectJWeixin().then(() => {
+ if (window.WWOpenData) {
+ WWOpenData.bind(this.$el)
+ } else this.injectJWeixin().then(() => {
this.$nextTick(() => {
WWOpenData.bind(this.$el)
WWOpenData.on('update', () => {
@@ -31,7 +32,9 @@ export default {
}
},
mounted() {
- this.bindWWOpenData()
+ this.$nextTick(() => {
+ this.bindWWOpenData()
+ })
}
}
diff --git a/src/main.js b/src/main.js
index 33ebf348..b9af3ee8 100644
--- a/src/main.js
+++ b/src/main.js
@@ -15,7 +15,7 @@ Vue.prototype.$http = axios;
Vue.prototype.$cdn = 'https://cdn.cunwuyun.cn/dvcp/h5/';
Object.keys(utils).map((e) => (Vue.prototype['$' + e] = utils[e]));
App.mpType = 'app';
-process.env.NODE_ENV == 'development' && new VConsole();
+// process.env.NODE_ENV == 'development' && new VConsole();
const app = new Vue({
store,
...App
diff --git a/src/pages/loading.vue b/src/pages/loading.vue
index 01ecd35c..ddd141b5 100644
--- a/src/pages/loading.vue
+++ b/src/pages/loading.vue
@@ -10,7 +10,7 @@
{{ app.name }}
-0
+