feat: 快速预定交互调整
This commit is contained in:
17
src/store/modules/selectedDate.js
Normal file
17
src/store/modules/selectedDate.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import { defineStore } from "pinia";
|
||||
|
||||
export const useSelectedDateStore = defineStore("selectedDate", {
|
||||
state() {
|
||||
return {
|
||||
selectedDate: {},
|
||||
};
|
||||
},
|
||||
|
||||
actions: {
|
||||
setData(data) {
|
||||
this.selectedDate = data;
|
||||
},
|
||||
},
|
||||
|
||||
unistorage: true,
|
||||
});
|
||||
Reference in New Issue
Block a user