Преглед изворни кода

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

chenjj пре 3 месеци
родитељ
комит
27b16ae590
1 измењених фајлова са 6 додато и 0 уклоњено
  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'