From a1a86cf343a64d196682b8fb189a6db585b934b0 Mon Sep 17 00:00:00 2001 From: 641737939035885f1803c7ba <641737939035885f1803c7ba@devide> Date: Wed, 31 May 2023 02:01:07 +0000 Subject: [PATCH] Auto Commit --- src/App.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index 8c06537..949b5af 100644 --- a/src/App.vue +++ b/src/App.vue @@ -22,7 +22,9 @@ export default { //放置棋子 set(idx) { if (!this.datas[idx] && !this.winner) { + this.datas[idx] = this.next_player + console.log(this.datas[idx], 'idx') this.history.push({ status: [...this.datas], player: this.next @@ -70,7 +72,10 @@ export default {