This commit is contained in:
@fawn-nine
2024-09-05 17:10:11 +08:00
parent a9f706e96f
commit 409e808a3c
6 changed files with 578 additions and 408 deletions

View File

@@ -1,8 +1,22 @@
export const state = {
//用户数据
userInfo: {},
// paperEndTime:0
};
export const mutations = {
setPaperEndTime(state, data) {
// console.log(state)
// console.log(data)
if (data) {
state.paperEndTime = Object.assign({}, state.paperEndTime, data);
// #ifdef H5
window.sessionStorage.setItem('paperEndTime', JSON.stringify(state.paperEndTime));
// #endif
// #ifndef H5
uni.setStorageSync('paperEndTime', state.paperEndTime);
// #endif
}
},
//储存用户信息
setUserInfo(state, data) {
// console.log(state)