FEAT: add rss & eslint & typescript
This commit is contained in:
@@ -3,22 +3,20 @@ import { defineStore, acceptHMRUpdate } from 'pinia'
|
||||
export const useUsersStore = defineStore('users', {
|
||||
state: () => {
|
||||
return {
|
||||
name: 'John Doe'
|
||||
name: 'John Doe',
|
||||
}
|
||||
},
|
||||
|
||||
getters: {
|
||||
nameUppercased: (state) => state.name.toUpperCase()
|
||||
getters: {
|
||||
nameUppercased: (state) => state.name.toUpperCase(),
|
||||
},
|
||||
|
||||
actions: {
|
||||
actions: {
|
||||
saveName(name) {
|
||||
this.name = name
|
||||
}
|
||||
this.name = name
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
if (import.meta.hot)
|
||||
import.meta.hot.accept(acceptHMRUpdate(useUsersStore, import.meta.hot))
|
||||
|
||||
|
Reference in New Issue
Block a user