testcase
This commit is contained in:
parent
94a2526af3
commit
dc0c6393a7
|
|
@ -8,7 +8,7 @@ const useStore = defineStore("store",{
|
||||||
},
|
},
|
||||||
//触发动作
|
//触发动作
|
||||||
actions:{
|
actions:{
|
||||||
update(username){
|
setuser(username){
|
||||||
this.username = username
|
this.username = username
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ export default {
|
||||||
};
|
};
|
||||||
const store = useStore()
|
const store = useStore()
|
||||||
const Check = (username) => {
|
const Check = (username) => {
|
||||||
store.update(username)
|
store.setuser(username)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue