1234567891011121314151617181920212223 |
- const state = {
- name:666,
- isBack:false
- }
- const actions = {
- saveCommonValue({commit},value) {
- commit('SAVE_COMMON_VALUE', value);
- }
- }
- const mutations = {
- SAVE_COMMON_VALUE(state, obj) {
- state[obj.key] = obj.value;
- // state.data = data;
- },
- }
- export default {
- state,
- actions,
- mutations
- }
|