Pārlūkot izejas kodu

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

chenjj 3 mēneši atpakaļ
vecāks
revīzija
27b16ae590
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  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'