mutations.js 338 B

1234567891011121314151617
  1. // 定义所需的 mutations
  2. const mutations = {
  3. SET_THEME: (state, color) => {
  4. // console.log(state,color);
  5. state.theme = color;
  6. },
  7. /* 是否有数据报表权限 */
  8. SET_DATA_AUTH(state, bool) {
  9. state.dataAuth = bool;
  10. },
  11. SET_TITLE(state,str) {
  12. state.breadSelfName = str;
  13. }
  14. };
  15. export default mutations;