From aca929222d723bf0ede7d492d75903fbb3e79dae Mon Sep 17 00:00:00 2001
From: u014301111
Date: Sat, 14 Sep 2024 19:21:00 +0800
Subject: [PATCH] Sat Sep 14 19:21:00 CST 2024 inscode
---
src/App.vue | 2 +-
src/utils/index.js | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/App.vue b/src/App.vue
index 0129899..7c7ade1 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -102,6 +102,6 @@ async function playChess(item, row, col) {
-
+
diff --git a/src/utils/index.js b/src/utils/index.js
index c1906b3..5edfe5d 100644
--- a/src/utils/index.js
+++ b/src/utils/index.js
@@ -45,6 +45,7 @@ function inRange(n, start = 0, end) {
}
return n >= start && n < end
}
+/** 在棋盘上 */
function inChessboard(ROW, COL){
return function(row, col){
return inRange(row, ROW) && inRange(col, COL);
--
GitLab