Compare commits
2 Commits
74e7399938
...
237e186172
Author | SHA1 | Date |
---|---|---|
|
237e186172 | 2 months ago |
|
db6c85e3a9 | 2 months ago |
@ -0,0 +1,22 @@
|
||||
// 引入
|
||||
import {
|
||||
defineStore
|
||||
} from 'pinia';
|
||||
//通过defineStore定义一个store,
|
||||
// defineStore 第一个参数是唯一的
|
||||
export const addressStore = defineStore('addressStore', {
|
||||
state: () => {
|
||||
return {
|
||||
checkedId: '',
|
||||
userName: '',
|
||||
phone: '',
|
||||
area: '',
|
||||
address: ''
|
||||
};
|
||||
},
|
||||
// 也可以这样定义
|
||||
// state: () => ({ count: 0 })
|
||||
actions: {
|
||||
|
||||
},
|
||||
});
|
Loading…
Reference in new issue