|
@@ -38,7 +38,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div><van-empty v-if="isempt" description="无仓库" /></div>
|
|
|
+ <div><van-empty v-if="isempt" :description="errormsg===''?'无仓库':errormsg" /></div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -58,6 +58,10 @@ import { upload } from '@/api/common';
|
|
|
import router from '@/router';
|
|
|
|
|
|
|
|
|
+const errormsg = ref("");
|
|
|
+const isempt = ref(false);
|
|
|
+
|
|
|
+
|
|
|
const cklist = ref([])
|
|
|
const gotockedit=(item)=>{
|
|
|
localStorage.setItem("cck",JSON.stringify(item))
|
|
@@ -101,6 +105,8 @@ onMounted(()=>{
|
|
|
cklist.value = res.rows;
|
|
|
}).catch(e=>{
|
|
|
Toast.clear();
|
|
|
+ isempt.value = true;
|
|
|
+ errormsg.value = e.message
|
|
|
})
|
|
|
})
|
|
|
|