nk-shop2.0/store/modules/storage.js

37 lines
509 B
JavaScript
Raw Normal View History

2023-09-28 11:18:07 +08:00
import {
getUserInfo,
Appversion
} from "../../api/user.js";
import {
LOGIN_STATUS,
UID,
USER_INFO
} from '../../config/cache';
import Cache from '../../utils/cache';
const state = {
storage: {},
2023-11-06 16:00:12 +08:00
location:{
lat: null,
long: null,
}
2023-09-28 11:18:07 +08:00
};
const mutations = {
setStorage(state, data) {
state.storage = data;
},
2023-11-06 16:00:12 +08:00
setLocation(state, data){
state.location.lat = data.lat;
state.location.long = data.long;
}
2023-09-28 11:18:07 +08:00
};
const actions = {
};
export default {
state,
mutations,
actions
};