个人练习提示词修改
This commit is contained in:
@@ -34,6 +34,7 @@ const onReady = async () => {
|
||||
|
||||
async function onReceiveMessage(messages = []) {
|
||||
messages.forEach((msg) => {
|
||||
console.log(11111, msg);
|
||||
if (msg.constructor === MESSAGETYPES.ShootSyncMeArrowID) {
|
||||
scores.value.push(msg.target);
|
||||
currentRound.value += 1;
|
||||
@@ -49,6 +50,7 @@ async function onReceiveMessage(messages = []) {
|
||||
...msg.practice,
|
||||
arrows: JSON.parse(msg.practice.arrows),
|
||||
};
|
||||
console.log(2222, practiseResult.value);
|
||||
generateCanvasImage("shareCanvas", 2, user.value, practiseResult.value);
|
||||
}
|
||||
}
|
||||
@@ -103,11 +105,12 @@ onUnmounted(() => {
|
||||
<ScorePanel2 v-if="start" :scores="scores.map((s) => s.ring)" />
|
||||
<ScoreResult
|
||||
v-if="practiseResult.arrows"
|
||||
:total="total"
|
||||
:rowCount="6"
|
||||
:onClose="onComplete"
|
||||
:result="practiseResult"
|
||||
tipSrc="../static/finish-tip.png"
|
||||
:tipSrc="`../static/${
|
||||
practiseResult.arrows.length < total ? 'un' : ''
|
||||
}finish-tip.png`"
|
||||
/>
|
||||
<canvas class="share-canvas" canvas-id="shareCanvas"></canvas>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user