This commit is contained in:
qiangyanwen 2022-08-14 16:41:28 +08:00
parent 023b4e34f5
commit fc44c34aaf
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
import {defineStore} from "pinia";
const useStore = defineStore("mon",{
const useStore = defineStore("store",{
state(){
return {
username: ""
@ -8,7 +8,7 @@ const useStore = defineStore("mon",{
},
//触发动作
actions:{
Update(username){
update(username){
this.username = username
}
},

View File

@ -69,9 +69,9 @@ export default {
const close = () => {
formRef.value.resetFields();
};
const mon = useStore()
const store = useStore()
const Check = (username) => {
mon.Update(username)
store.update(username)
}