暂存
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user