feat: 添加vue3bbs前端

This commit is contained in:
橙子
2023-02-26 13:17:19 +08:00
parent 72decd970a
commit 3e31f7783f
30 changed files with 5842 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import { ref, computed } from 'vue'
import { defineStore } from 'pinia'
export const userStore = defineStore('user',
{
state: () => ({
counter: 0,
}),
getters: {
doubleCount: (state) => state.counter*2,
},
actions: {
increment() {
this.counter+=10
}
},
}
)