liwei19941102 2 rokov pred
rodič
commit
c9021de594

+ 5 - 8
ruoyi-ui-vue3/src/views/device/camera/index.vue

@@ -209,17 +209,13 @@ async function getVideoDetailList() {
   })
 }
 
-async function getVideoDeviceList() {
+ function getVideoDeviceList() {
   listVideo({ pageSize: 10000 }).then(res => {
     treeList.value = res.rows;
+    getVideoDetailList()
   })
 }
 
-async function videoTreeList() {
-  await getVideoDeviceList()
-  await getVideoDetailList()
-}
-
 const getVideoList = () => {
   console.log(searchform.value);
   listVideo({ ...searchform.value, pageSize: pagedata.value.size, pageNum: pagedata.value.current }).then(res => {
@@ -235,9 +231,10 @@ const goUpdate = (item) => {
   router.push({ path: '/device/camera/add', query: { id: item.id } })
 }
 
+getVideoDeviceList();
 getVideoList();
-const res = videoTreeList();
-console.log(res);
+// const res = videoTreeList();
+// console.log(res);
 </script>
 
 <style></style>