Explorar el Código

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

chenjj hace 3 meses
padre
commit
27b16ae590
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  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'