wenhongquan 3 жил өмнө
parent
commit
c32329efef

+ 19 - 17
src/views/WarehouseList/index.vue

@@ -89,23 +89,12 @@ let taskid = "";
 
 onBeforeMount(()=>{
    cklist.value = [];
-})
-
-onMounted(()=>{
-  try{
-     taskid =  route.query.taskid;
-  }catch(E){
-
-  }
-  cklist.value = [];
-
-  // Toast.loading({
-  //   message: '加载中...',
-  //   duration: 0,
-  //   forbidClick: true,
-  // });
-  console.log("---------")
-  api_getresource({
+    Toast.loading({
+    message: '加载中...',
+    duration: 0,
+    forbidClick: true,
+  });
+   api_getresource({
     resourceType: 1,
   }).then(res=>{
     Toast.clear();
@@ -118,6 +107,19 @@ onMounted(()=>{
   })
 })
 
+onMounted(()=>{
+  try{
+     taskid =  route.query.taskid;
+  }catch(E){
+
+  }
+  cklist.value = [];
+
+ 
+
+  
+})
+
 </script>
 
 <style lang="scss">