testcase
This commit is contained in:
parent
023b4e34f5
commit
fc44c34aaf
|
|
@ -1,6 +1,6 @@
|
||||||
import {defineStore} from "pinia";
|
import {defineStore} from "pinia";
|
||||||
|
|
||||||
const useStore = defineStore("mon",{
|
const useStore = defineStore("store",{
|
||||||
state(){
|
state(){
|
||||||
return {
|
return {
|
||||||
username: ""
|
username: ""
|
||||||
|
|
@ -8,7 +8,7 @@ const useStore = defineStore("mon",{
|
||||||
},
|
},
|
||||||
//触发动作
|
//触发动作
|
||||||
actions:{
|
actions:{
|
||||||
Update(username){
|
update(username){
|
||||||
this.username = username
|
this.username = username
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -69,9 +69,9 @@ export default {
|
||||||
const close = () => {
|
const close = () => {
|
||||||
formRef.value.resetFields();
|
formRef.value.resetFields();
|
||||||
};
|
};
|
||||||
const mon = useStore()
|
const store = useStore()
|
||||||
const Check = (username) => {
|
const Check = (username) => {
|
||||||
mon.Update(username)
|
store.update(username)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue