This commit is contained in:
qiangyanwen 2022-08-14 17:41:02 +08:00
parent 94a2526af3
commit dc0c6393a7
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ const useStore = defineStore("store",{
}, },
//触发动作 //触发动作
actions:{ actions:{
update(username){ setuser(username){
this.username = username this.username = username
} }
}, },

View File

@ -74,7 +74,7 @@ export default {
}; };
const store = useStore() const store = useStore()
const Check = (username) => { const Check = (username) => {
store.update(username) store.setuser(username)
} }