wenhongquan 3 years ago
parent
commit
c1df1db251
1 changed files with 12 additions and 6 deletions
  1. 12 6
      src/views/WarehouseList/index.vue

+ 12 - 6
src/views/WarehouseList/index.vue

@@ -43,7 +43,7 @@
 </template>
 
 <script setup>
-import { ref, reactive, onUpdated, onMounted, watch } from 'vue';
+import { ref, reactive, onUpdated, onMounted, watch,onBeforeMount } from 'vue';
 import { RouterView, useRoute, useRouter } from 'vue-router';
 import {
     api_getresource,
@@ -85,6 +85,12 @@ const goback = () => {
    //window.history.back();
 };
 let taskid = "";
+
+
+onBeforeMount(()=>{
+   cklist.value = [];
+})
+
 onMounted(()=>{
   try{
      taskid =  route.query.taskid;
@@ -93,11 +99,11 @@ onMounted(()=>{
   }
   cklist.value = [];
 
-  Toast.loading({
-    message: '加载中...',
-    duration: 0,
-    forbidClick: true,
-  });
+  // Toast.loading({
+  //   message: '加载中...',
+  //   duration: 0,
+  //   forbidClick: true,
+  // });
   api_getresource({
     resourceType: 1,
   }).then(res=>{