Pinia Store 功能測試

測試說明

  • 點擊 +1/-1 按鈕測試 state 更新
  • 輸入訊息測試 action 函數
  • 觀察 computed values (doubleCount) 是否自動更新
  • 點擊 Reset 測試重置功能

Pinia Store Test

Pinia is working! Count: 0

Double count: 0

Store State:

{
  "count": 0,
  "message": "Pinia is working!",
  "doubleCount": 0
}