diff --git a/src/app.js b/src/app.js index 7ccb099..1418ff2 100644 --- a/src/app.js +++ b/src/app.js @@ -166,8 +166,8 @@ class App{ freshTotal(); } btnAdd.click(()=>{ - if(total() >= this.#totalMax) { - this.hint('没用可分配的点数了'); + if(total() == this.#totalMax) { + this.hint('没有可分配的点数了'); return; } set(get()+1); @@ -467,4 +467,4 @@ class App{ } -export default App; \ No newline at end of file +export default App;