kmkf-work-order-service-component 0.4.2 → 0.4.3-alpha.2

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.
@@ -2,7 +2,7 @@
2
2
  export declare const COMMON_HOST = "https://kefu.kuaimai.com";
3
3
  export declare const HD_HOST = "https://kefuab.kuaimai.com";
4
4
  interface LoginProps {
5
- loginCallBack?: () => void;
5
+ loginCallBack?: (val: any) => void;
6
6
  }
7
7
  declare const ProviderLogin: (props: LoginProps) => JSX.Element;
8
8
  export default ProviderLogin;
@@ -69,6 +69,7 @@ var Login = function Login(props) {
69
69
  var dispatch = useAppDispatch();
70
70
  useEffect(function () {
71
71
  localStorage.removeItem('kmkf_kmgd_cookie');
72
+ cache.setHost(COMMON_HOST);
72
73
  }, []);
73
74
 
74
75
  var processHistoryPwd = function processHistoryPwd(params) {
@@ -191,7 +192,10 @@ var Login = function Login(props) {
191
192
  return dispatch(fetchShopList());
192
193
 
193
194
  case 9:
194
- loginCallBack === null || loginCallBack === void 0 ? void 0 : loginCallBack();
195
+ loginCallBack === null || loginCallBack === void 0 ? void 0 : loginCallBack({
196
+ isGray: isInHd,
197
+ data: data
198
+ });
195
199
 
196
200
  case 10:
197
201
  setLoading(false);
@@ -134,7 +134,7 @@ var WorkOrder = function WorkOrder(props) {
134
134
  id: "customize-work-order-component",
135
135
  className: "order_container ".concat(platform === PlatForm.FXG ? '' : 'order_container_padding_bottom')
136
136
  }, /*#__PURE__*/React.createElement("header", {
137
- className: "order_header"
137
+ className: "order_header_new"
138
138
  }, /*#__PURE__*/React.createElement("div", {
139
139
  className: "order_header_tabs"
140
140
  }, /*#__PURE__*/React.createElement("div", {
@@ -1,7 +1,7 @@
1
1
  .order_container {
2
2
  padding: 0 8px;
3
3
  }
4
- .order_header {
4
+ .order_header_new {
5
5
  .order_header_tabs {
6
6
  display: flex;
7
7
  align-items: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kmkf-work-order-service-component",
3
- "version": "0.4.2",
3
+ "version": "0.4.3-alpha.2",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",