The code powering m.abunchtell.com https://m.abunchtell.com
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

20 行
346 B

  1. import axios from 'axios';
  2. export const SETTING_CHANGE = 'SETTING_CHANGE';
  3. export function changeSetting(key, value) {
  4. return {
  5. type: SETTING_CHANGE,
  6. key,
  7. value
  8. };
  9. };
  10. export function saveSettings() {
  11. return (_, getState) => {
  12. axios.put('/api/web/settings', {
  13. data: getState().get('settings').toJS()
  14. });
  15. };
  16. };