Commit a1121dd6 by Tianqing Liu

feat: 优化截图代码

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