Browse Source

页面不刷新问题处理

master
suyanyan 5 months ago
parent
commit
19e177438c
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      SafeCampus.WEB/src/views/sysconfig/ability/index.vue

+ 3
- 0
SafeCampus.WEB/src/views/sysconfig/ability/index.vue View File

@@ -25,6 +25,7 @@
:isData="true"
width="300px"
:data="videoList"
:key="videoKey"
@change="changeVideo"
>
</TreeFilter>
@@ -129,10 +130,12 @@ function changeGroup(val: number | string) {
getVideoList(val)
}
const videoList = ref<any>();
const videoKey = ref<any>();
function getVideoList(id:any) {
console.log(id,11)
setTimeout(async () => {
await monitorLIVEApi.list({ pageNum: 1, pageSize: 1000, groupId:id }).then(res => {
videoKey.value = new Date().getTime();
videoList.value = res.data.list;
});
});


||||||
x
 
000:0
Loading…
Cancel
Save