Selaa lähdekoodia

首页志愿者端不请求用户端的列表

chenjj 3 kuukautta sitten
vanhempi
commit
27b16ae590
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 6 0
      pages/index.vue

+ 6 - 0
pages/index.vue

@@ -131,6 +131,12 @@ const getNotice = async () => {
 
 const getList = async () => {
   try {
+    if(userType !== 1){
+      console.log('志愿者端');
+      return
+    }
+    console.log('用户端');
+
     loadmoreInfo.value.status = 'loading'