|
|
import * as Types from './types';
|
|
|
import cookie from 'yoho-cookie';
|
|
|
import { merge } from 'lodash';
|
|
|
import { initBaseLogs } from 'utils/init-client';
|
|
|
|
|
|
export default function(mergeState = {}) {
|
|
|
return {
|
...
|
...
|
@@ -198,6 +199,7 @@ export default function(mergeState = {}) { |
|
|
try {
|
|
|
// console.log(appop)
|
|
|
// console.log(param)
|
|
|
initBaseLogs();
|
|
|
setTimeout(() => {
|
|
|
if (window._yas && window._yas.sendAppLogs) {
|
|
|
param = param || {};
|
...
|
...
|
@@ -241,7 +243,7 @@ export default function(mergeState = {}) { |
|
|
isEnabled = resp.data === '1';
|
|
|
}
|
|
|
|
|
|
commit(Types.UPDATE_SYSTEM_CONFIG_QIUGOU, { enabled: isEnabled});
|
|
|
commit(Types.UPDATE_SYSTEM_CONFIG_QIUGOU, { enabled: isEnabled });
|
|
|
}
|
|
|
|
|
|
return isEnabled;
|
...
|
...
|
|