Commit 371604ae authored by xiaoye's avatar xiaoye

Update pics.vue

parent 9e9d1dc8
...@@ -51,17 +51,21 @@ ...@@ -51,17 +51,21 @@
main : [] as Array<number>, main : [] as Array<number>,
side : [] as Array<number>, side : [] as Array<number>,
blob : undefined as Blob | undefined, blob : undefined as Blob | undefined,
init : (i : { init : async (i : {
participant : Participant, participant : Participant,
main : Array<number>, main : Array<number>,
side : Array<number>, side : Array<number>,
blob : Blob, blob : Blob,
}) : void => { }) : Promise<void> => {
if (deck.chk) return; if (deck.chk) return;
const participant = i.participant ?? undefined; const participant = i.participant ?? undefined;
if (participant && deck.participant == participant) { if (participant && deck.participant == participant) {
deck.off(); deck.off();
return return;
}
if (deck.participant) {
deck.participant = undefined;
await (new Promise(resolve => setTimeout(resolve, 500)));
} }
deck.main = i.main; deck.main = i.main;
deck.side = i.side; deck.side = i.side;
...@@ -104,6 +108,7 @@ ...@@ -104,6 +108,7 @@
}); });
</script> </script>
<style scoped lang = 'scss'> <style scoped lang = 'scss'>
@import '../style/transition.scss';
.button { .button {
border: 1px solid #409eff; border: 1px solid #409eff;
display: flex; display: flex;
......
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