component-shipinlv 2.3.5 → 2.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,11 +3,13 @@ import store from "./store";
|
|
3
3
|
var AccountManageSettingConfigKey = 'account-manage-setting';
|
4
4
|
var AccountManageSettingConfig = function AccountManageSettingConfig(data) {
|
5
5
|
var _window$getBridge, _window, _window$getBridge$get;
|
6
|
+
var chromePath = ((_window$getBridge = (_window = window).getBridge) === null || _window$getBridge === void 0 || (_window$getBridge = _window$getBridge.call(_window)) === null || _window$getBridge === void 0 || (_window$getBridge$get = _window$getBridge.getChromiumPath) === null || _window$getBridge$get === void 0 ? void 0 : _window$getBridge$get.call(_window$getBridge)) || '';
|
6
7
|
if (data) {
|
7
|
-
store.set(AccountManageSettingConfigKey, _objectSpread({}, data)
|
8
|
+
store.set(AccountManageSettingConfigKey, _objectSpread(_objectSpread({}, data), {}, {
|
9
|
+
chromePath: chromePath
|
10
|
+
}));
|
8
11
|
return data;
|
9
12
|
}
|
10
|
-
var chromePath = ((_window$getBridge = (_window = window).getBridge) === null || _window$getBridge === void 0 || (_window$getBridge = _window$getBridge.call(_window)) === null || _window$getBridge === void 0 || (_window$getBridge$get = _window$getBridge.getChromiumPath) === null || _window$getBridge$get === void 0 ? void 0 : _window$getBridge$get.call(_window$getBridge)) || '';
|
11
13
|
var storeData = store.get(AccountManageSettingConfigKey);
|
12
14
|
var outData = _objectSpread(_objectSpread({
|
13
15
|
isChromeOpen: false,
|