component-shipinlv 1.1.15 → 1.1.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -91,7 +91,10 @@ var VideoPublishAccountManageHomePage = function VideoPublishAccountManageHomePa
91
91
  var onOpen = function onOpen(key) {
92
92
  switch (key) {
93
93
  case 'creator':
94
- if (accountDetail.platform === 'douyin') {}
94
+ if (accountDetail.platform === 'douyin') {
95
+ var _window$getBridge;
96
+ (_window$getBridge = window.getBridge()) === null || _window$getBridge === void 0 || _window$getBridge.openBrowser(accountDetail.platform, key, accountDetail.accountId);
97
+ }
95
98
  break;
96
99
  }
97
100
  };
@@ -97,6 +97,11 @@ var AccountManageSettingPage = function AccountManageSettingPage(_ref) {
97
97
  label: "\u8C37\u6B4C\u6D4F\u89C8\u5668\uFF08Chrome\uFF09\u4F4D\u7F6E"
98
98
  // name="disabledApplyTask"
99
99
  ,
100
+ extra: /*#__PURE__*/_jsxs("div", {
101
+ children: ["Chrome \u7248\u672C\u63A8\u8350 110 \u4EE5\u4E0A\uFF08\u6253\u5F00 \u8C37\u6B4C\u6D4F\u89C8\u5668\uFF0C\u8F93\u5165 ", /*#__PURE__*/_jsx("a", {
102
+ children: "chrome://settings/help"
103
+ }), " \u53EF\u67E5\u8BE2\u7248\u672C\uFF09"]
104
+ }),
100
105
  children: /*#__PURE__*/_jsx(FileSelect, {
101
106
  path: formData.chromePath,
102
107
  disabled: false,
@@ -161,7 +161,7 @@ declare const Tool: {
161
161
  OsPathSeparator(): string;
162
162
  getTitleByPath(path: string): string;
163
163
  h5Pay(query: Pay.H5PayQuery): void;
164
- notification(type: "success" | "info" | "error" | "warning", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
164
+ notification(type: "success" | "info" | "warning" | "error", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
165
165
  notificationSuccess(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
166
166
  notificationError(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
167
167
  notificationWarning(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
@@ -7,16 +7,16 @@ var AccountManageSettingConfig = function AccountManageSettingConfig(data) {
7
7
  store.set(AccountManageSettingConfigKey, _objectSpread({}, data));
8
8
  return data;
9
9
  }
10
- console.log('AccountManageSettingConfig get');
11
10
  var chromePath = (_window$getBridge = (_window = window).getBridge) === null || _window$getBridge === void 0 ? void 0 : _window$getBridge.call(_window).getChromiumPath();
12
- var outData = _objectSpread({
11
+ console.log('AccountManageSettingConfig get:', chromePath);
12
+ var storeData = store.get(AccountManageSettingConfigKey);
13
+ var outData = _objectSpread(_objectSpread({
13
14
  isChromeOpen: false,
14
- disabledApplyTask: false,
15
- chromePath: ''
16
- }, store.get(AccountManageSettingConfigKey));
17
- if (!outData.chromePath) {
18
- outData.chromePath = chromePath;
19
- }
15
+ disabledApplyTask: false
16
+ }, storeData), {}, {
17
+ // 优先用存储的;
18
+ chromePath: storeData.chromePath || chromePath
19
+ });
20
20
  return outData;
21
21
  };
22
22
  export default AccountManageSettingConfig;
package/dist/window.d.ts CHANGED
@@ -18,6 +18,8 @@ declare interface Window{
18
18
  onLog: ( log: ( query: any ) => void ) => void;
19
19
  getChromiumPath: () => string;
20
20
  getClientUniqueKey: () => string;
21
+
22
+ openBrowser: ( platform: string, pageType: string, accountId: string ) => void;
21
23
  };
22
24
 
23
25
  getClientIdentity: () => Promise<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "1.1.15",
3
+ "version": "1.1.16",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",