Commit bb219ecb authored by 朱松文's avatar 朱松文

分页不重播视频

parent 3bc18cd3
......@@ -94,6 +94,7 @@ export default class Dashboard extends BaseVue {
dogTotal = 0;
currentDogId = 0;
currentCameraId = "";
firstLoadPage = true;
async created(): Promise<void> {
this.queryCamera();
......@@ -101,8 +102,11 @@ export default class Dashboard extends BaseVue {
@Watch("dogData")
dogDataChange(newValue) {
//初始第一条视频
this.handlePlay(newValue[0]);
if (this.firstLoadPage) {
//初始第一条视频
this.handlePlay(newValue[0]);
this.firstLoadPage = false;
}
}
mounted() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment