Commit a1121dd6 by Tianqing Liu

feat: 优化截图代码

1 parent dabd543e
......@@ -363,27 +363,27 @@ export default {
*/
screenshot(num) {
if(num === 0) {
this.$refs.vionPlayer0.screenshot().then(data => {
return this.$refs.vionPlayer0.screenshot().then(data => {
return data;
}).catch(err => {
})
} else if(num === 1) {
this.$refs.vionPlayer1.screenshot().then(data => {
return this.$refs.vionPlayer1.screenshot().then(data => {
return data;
}).catch(err => {
})
} else if(num === 2) {
this.$refs.vionPlayer2.screenshot().then(data => {
return this.$refs.vionPlayer2.screenshot().then(data => {
return data;
}).catch(err => {
})
} else if(num === 3) {
this.$refs.vionPlayer3.screenshot().then(data => {
return this.$refs.vionPlayer3.screenshot().then(data => {
return data;
}).catch(err => {
})
} else {
this.$refs.vionPlayer.screenshot().then(data => {
return this.$refs.vionPlayer.screenshot().then(data => {
return data;
}).catch(err => {
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!