Explorar el Código

提交 wx 低版本兼容

DESKTOP-HN5QP3V\Administrator hace 3 semanas
padre
commit
02a3b4fd00
Se han modificado 2 ficheros con 5 adiciones y 3 borrados
  1. 4 1
      src/views/Channel/ChannelManage.vue
  2. 1 2
      src/views/Version/Test.vue

+ 4 - 1
src/views/Channel/ChannelManage.vue

@@ -104,7 +104,10 @@ const getList = async () => {
     pageIndex: 1,
     pageIndex: 1,
     pageSize: 100
     pageSize: 100
   })
   })
-    .catch(() => ({}))
+    .catch(() => ({
+      code: -1,
+      data: { list: [], total: 0 }
+    }))
     .finally(() => {
     .finally(() => {
       loading.value = false
       loading.value = false
     })
     })

+ 1 - 2
src/views/Version/Test.vue

@@ -38,8 +38,7 @@ const testApi1 = async () => {
     return
     return
   }
   }
 
 
-  console.log(selectedChannel.value)
-  if (!form.channel.trim()) {
+  if (!form.channel.trim() && form.version.trim() > "1.0.67") {
     ElMessage.error('渠道不能为空')
     ElMessage.error('渠道不能为空')
     return
     return
   }
   }