Explorar o código

improve: 消息关注

From-wh %!s(int64=2) %!d(string=hai) anos
pai
achega
bb2b78317f
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      template/admin/src/pages/app/wechat/reply/follow.vue

+ 5 - 1
template/admin/src/pages/app/wechat/reply/follow.vue

@@ -210,7 +210,7 @@ export default {
       formatVoice: ['mp3', 'wma', 'wav', 'amr'],
       header: {},
       formValidate: {
-        status: 1,
+        status: -1,
         type: '',
         key: this.$route.params.key || '',
         data: {
@@ -287,6 +287,10 @@ export default {
       }
       keywordsinfoApi(url, data)
         .then(async (res) => {
+          if (res.data.info.data instanceof Array) {
+            this.formValidate.status = 0;
+            return;
+          }
           let info = res.data.info || {};
           let data = info.data || {};
           this.formValidate = {