|
@@ -127,6 +127,7 @@ const { projectList, wsState, bodyposeState, deviceInfo, currentGame, currentGam
|
|
|
watch(
|
|
|
() => areaStateList.value,
|
|
|
(newData, oldData) => {
|
|
|
+ console.log("areaStateList.value", areaStateList.value)
|
|
|
//如果当前都是结束了就再重新弹窗
|
|
|
let state = newData.every((item: any) => {
|
|
|
return item.gameover;
|
|
@@ -322,9 +323,6 @@ const getStartGame = (data: any) => {
|
|
|
* 继续游戏
|
|
|
*/
|
|
|
const getResumeGame = () => {
|
|
|
- areaStateList.value.forEach((item: any, index: number) => {
|
|
|
- areaStateList.value[index].gameover = false;
|
|
|
- })
|
|
|
resumeGame.value = false;
|
|
|
|
|
|
timerNum.value = 5;
|
|
@@ -333,6 +331,9 @@ const getResumeGame = () => {
|
|
|
timerNum.value--;
|
|
|
speckText(timerNum.value);
|
|
|
if (timerNum.value == 0) {
|
|
|
+ areaStateList.value.forEach((item: any, index: number) => {
|
|
|
+ areaStateList.value[index].gameover = false;
|
|
|
+ })
|
|
|
clearInterval(timer.value);
|
|
|
timer.value = null;
|
|
|
if (currentGame.value == 'game_basketball') {
|