1234567891011121314151617 |
- // 定义所需的 mutations
- const mutations = {
- SET_THEME: (state, color) => {
- // console.log(state,color);
- state.theme = color;
- },
- /* 是否有数据报表权限 */
- SET_DATA_AUTH(state, bool) {
- state.dataAuth = bool;
- },
-
- SET_TITLE(state,str) {
- state.breadSelfName = str;
- }
- };
- export default mutations;
|