浏览代码

页面不刷新问题处理

master
suyanyan 2 个月前
父节点
当前提交
19e177438c
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      SafeCampus.WEB/src/views/sysconfig/ability/index.vue

+ 3
- 0
SafeCampus.WEB/src/views/sysconfig/ability/index.vue 查看文件

@@ -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;
});
});


正在加载...
取消
保存