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

分页不重播视频

parent 3bc18cd3
...@@ -94,6 +94,7 @@ export default class Dashboard extends BaseVue { ...@@ -94,6 +94,7 @@ export default class Dashboard extends BaseVue {
dogTotal = 0; dogTotal = 0;
currentDogId = 0; currentDogId = 0;
currentCameraId = ""; currentCameraId = "";
firstLoadPage = true;
async created(): Promise<void> { async created(): Promise<void> {
this.queryCamera(); this.queryCamera();
...@@ -101,8 +102,11 @@ export default class Dashboard extends BaseVue { ...@@ -101,8 +102,11 @@ export default class Dashboard extends BaseVue {
@Watch("dogData") @Watch("dogData")
dogDataChange(newValue) { dogDataChange(newValue) {
//初始第一条视频 if (this.firstLoadPage) {
this.handlePlay(newValue[0]); //初始第一条视频
this.handlePlay(newValue[0]);
this.firstLoadPage = false;
}
} }
mounted() { 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