@smart100/spu-web-plugin 0.0.33 → 0.0.34

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.
package/dist/index.d.ts CHANGED
@@ -83,6 +83,7 @@ export const getUniqueid: () => string
83
83
  export const getUuid: () => string
84
84
  export const functionCheck: (functioncode?: string) => boolean
85
85
  export const setTitle: (pagetitle?: string) => void
86
+ export const isInApp: () => boolean
86
87
  export const AMapLoader: IAMapLoader
87
88
  export const getToken: () => string
88
89
  export const getTokenExpires: () => string
@@ -708,7 +708,7 @@ function _toPropertyKey$1(arg) {
708
708
  return typeof key === "symbol" ? key : String(key);
709
709
  }
710
710
 
711
- var version = "0.0.33";
711
+ var version = "0.0.34";
712
712
 
713
713
  /** Detect free variable `global` from Node.js. */
714
714
  var freeGlobal$2 = typeof global == 'object' && global && global.Object === Object && global;
@@ -12532,7 +12532,7 @@ var WxworksuiteTree = /*#__PURE__*/function (_LitElement) {
12532
12532
  // 判断是否开启企微通信录支持,默认不开启
12533
12533
  _this.iswwopendata = false;
12534
12534
  // 控制通信录转移类型
12535
- _this.wwopendatatype = ''; // userName | departmentName | expression | ''
12535
+ _this.wwopendatatype = ''; // userName | departmentName | expression
12536
12536
  _this.valuekey = 'id'; // 默认id 也可定义别的属性值比如 codepath(被定义的属性值必须唯一)
12537
12537
  _this.ismulselect = false;
12538
12538
  _this.displaytype = 'mobile'; // web | mobile
@@ -13298,7 +13298,7 @@ var WxworksuiteOrganizationpickMobile = /*#__PURE__*/function (_LitElement) {
13298
13298
  function WxworksuiteOrganizationpickMobile() {
13299
13299
  var _this;
13300
13300
  _classCallCheck(this, WxworksuiteOrganizationpickMobile);
13301
- _this = _super.apply(this, arguments);
13301
+ _this = _super.call(this);
13302
13302
  _this.displaytype = 'mobile';
13303
13303
  _this.ismulselect = false;
13304
13304
  _this.issearch = true;
@@ -13315,51 +13315,44 @@ var WxworksuiteOrganizationpickMobile = /*#__PURE__*/function (_LitElement) {
13315
13315
  // disable 不能选非末级节点 只能选末级节点 暂不实现
13316
13316
  _this.singleselectmode = 'normal';
13317
13317
  _this._expandicon = 'organization';
13318
- _this._isWxworkSuiteTenant = true;
13319
13318
  _this._list = [];
13319
+ // axios.post('/api/teapi/dy-biz/100000000000000000/110000000000000000', {
13320
+ // pl_orgstruct: {
13321
+ // status: '1'
13322
+ // }
13323
+ // }).then((res: any) => {
13324
+ // // console.log(res)
13325
+ // const list = res?.data?.pl_orgstruct || []
13326
+ // list.forEach((item: any) => {
13327
+ // item.name = item.orgname
13328
+ // // item.name = '1'
13329
+ // item.id = item.orgstructid
13330
+ // item.pid = item.parentorgstructid
13331
+ // })
13332
+ // this._list = list
13333
+ // })
13334
+ normalAxios$1.post('/api/system/v1.0/org/page', {
13335
+ showchild: true,
13336
+ orgstructtypeid: 1,
13337
+ useRule: _this.userule,
13338
+ pageindex: 1,
13339
+ pagesize: 99999,
13340
+ getAllStatus: false // 是否获取全部数据(即包含禁用)
13341
+ }).then(function (res) {
13342
+ var _res$data;
13343
+ // console.log(res)
13344
+ var list = (res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 || (_res$data = _res$data.data) === null || _res$data === void 0 ? void 0 : _res$data.list) || [];
13345
+ list.forEach(function (item) {
13346
+ item.name = item.orgname;
13347
+ // item.name = '1'
13348
+ item.id = item.orgstructid;
13349
+ item.pid = item.parentorgstructid;
13350
+ });
13351
+ _this._list = list;
13352
+ });
13320
13353
  return _this;
13321
13354
  }
13322
13355
  _createClass(WxworksuiteOrganizationpickMobile, [{
13323
- key: "connectedCallback",
13324
- value: function connectedCallback() {
13325
- var _this2 = this;
13326
- _get(_getPrototypeOf(WxworksuiteOrganizationpickMobile.prototype), "connectedCallback", this).call(this);
13327
- // axios.post('/api/teapi/dy-biz/100000000000000000/110000000000000000', {
13328
- // pl_orgstruct: {
13329
- // status: '1'
13330
- // }
13331
- // }).then((res: any) => {
13332
- // // console.log(res)
13333
- // const list = res?.data?.pl_orgstruct || []
13334
- // list.forEach((item: any) => {
13335
- // item.name = item.orgname
13336
- // // item.name = '1'
13337
- // item.id = item.orgstructid
13338
- // item.pid = item.parentorgstructid
13339
- // })
13340
- // this._list = list
13341
- // })
13342
- normalAxios$1.post('/api/system/v1.0/org/page', {
13343
- showchild: true,
13344
- orgstructtypeid: 1,
13345
- useRule: this.userule,
13346
- pageindex: 1,
13347
- pagesize: 99999,
13348
- getAllStatus: false // 是否获取全部数据(即包含禁用)
13349
- }).then(function (res) {
13350
- var _res$data;
13351
- // console.log(res)
13352
- var list = (res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 || (_res$data = _res$data.data) === null || _res$data === void 0 ? void 0 : _res$data.list) || [];
13353
- list.forEach(function (item) {
13354
- item.name = item.orgname;
13355
- // item.name = '1'
13356
- item.id = item.orgstructid;
13357
- item.pid = item.parentorgstructid;
13358
- });
13359
- _this2._list = list;
13360
- });
13361
- }
13362
- }, {
13363
13356
  key: "treeRef",
13364
13357
  get: function get() {
13365
13358
  var _this$renderRoot$quer, _this$renderRoot;
@@ -13427,7 +13420,7 @@ var WxworksuiteOrganizationpickMobile = /*#__PURE__*/function (_LitElement) {
13427
13420
  }, {
13428
13421
  key: "render",
13429
13422
  value: function render() {
13430
- return x(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n <wxworksuite-tree\n wwopendatatype=\"", "\"\n displaytype=\"", "\"\n expandicon=\"", "\"\n searchplaceholder=\"", "\"\n .issearch=\"", "\"\n .iswwopendata=\"", "\"\n .list=\"", "\"\n .ismulselect=\"", "\"\n singleselectmode=\"", "\"\n mulselectmode=\"", "\"\n @select=\"", "\"\n @check=\"", "\"\n ></wxworksuite-tree>\n "])), this._isWxworkSuiteTenant ? 'departmentName' : '', this.displaytype, this._expandicon, this.searchplaceholder, this.issearch, this._isWxworkSuiteTenant, this._list, this.ismulselect, this.singleselectmode, this.mulselectmode, this._handleSelect, this._handleCheck);
13423
+ return x(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n <wxworksuite-tree\n wwopendatatype=\"departmentName\"\n displaytype=\"", "\"\n expandicon=\"", "\"\n searchplaceholder=\"", "\"\n .issearch=\"", "\"\n .iswwopendata=\"", "\"\n .list=\"", "\"\n .ismulselect=\"", "\"\n singleselectmode=\"", "\"\n mulselectmode=\"", "\"\n @select=\"", "\"\n @check=\"", "\"\n ></wxworksuite-tree>\n "])), this.displaytype, this._expandicon, this.searchplaceholder, this.issearch, true, this._list, this.ismulselect, this.singleselectmode, this.mulselectmode, this._handleSelect, this._handleCheck);
13431
13424
  }
13432
13425
  }], [{
13433
13426
  key: "register",
@@ -13464,7 +13457,6 @@ __decorate([n$1({
13464
13457
  type: String
13465
13458
  })], WxworksuiteOrganizationpickMobile.prototype, "singleselectmode", void 0);
13466
13459
  __decorate([r$1()], WxworksuiteOrganizationpickMobile.prototype, "_expandicon", void 0);
13467
- __decorate([r$1()], WxworksuiteOrganizationpickMobile.prototype, "_isWxworkSuiteTenant", void 0);
13468
13460
  __decorate([r$1()], WxworksuiteOrganizationpickMobile.prototype, "_list", void 0);
13469
13461
 
13470
13462
  var _class$2;
@@ -13503,7 +13495,7 @@ var WxworksuiteMemberpickMobile = /*#__PURE__*/function (_LitElement) {
13503
13495
  function WxworksuiteMemberpickMobile() {
13504
13496
  var _this;
13505
13497
  _classCallCheck(this, WxworksuiteMemberpickMobile);
13506
- _this = _super.apply(this, arguments);
13498
+ _this = _super.call(this);
13507
13499
  _this.displaytype = 'mobile';
13508
13500
  _this.ismulselect = false;
13509
13501
  _this.issearch = true;
@@ -13519,72 +13511,57 @@ var WxworksuiteMemberpickMobile = /*#__PURE__*/function (_LitElement) {
13519
13511
  // normal 正常选中取值
13520
13512
  // disable 不能选非末级节点 只能选末级节点 暂不实现
13521
13513
  _this.singleselectmode = 'normal';
13522
- _this._isWxworkSuiteTenant = true;
13523
13514
  _this._list = [];
13515
+ // axios.post('/api/teapi/dy-biz/1032470355689738336/1273067686762516579', {
13516
+ // member: {
13517
+ // searchkey: '',
13518
+ // orglimit: '',
13519
+ // orgstructid: '',
13520
+ // email: '',
13521
+ // includechild: '1'
13522
+ // }
13523
+ // }).then((res: any) => {
13524
+ // // console.log(res)
13525
+ // const list = res?.data?.member || []
13526
+ // list.forEach((item: any, index: number) => {
13527
+ // item.name = `__$$wwopendata(${item.userinfoname}, userName)(${item.positionname})`
13528
+ // // item.name = `__$$wwopendata(${item.userinfoname}, userName)(${item.positionname})__$$wwopendata(哈哈+${index}, departmentName)`
13529
+ // item.id = item.memberid
13530
+ // item.pid = ''
13531
+ // item.iswwopendata = true
13532
+ // item.wwopendatatype = 'expression'
13533
+ // })
13534
+ // this._list = list
13535
+ // })
13536
+ normalAxios$1.post('/api/system/v1.0/member/getMemberList', {
13537
+ name: '',
13538
+ phoneNumber: '',
13539
+ saleAreaCodePath: '',
13540
+ positionName: '',
13541
+ pageindex: 1,
13542
+ pagesize: 99999,
13543
+ // useRule: false, // 使用数据权限
13544
+ // useRule: this.userule, // 使用数据权限
13545
+ appcode: 'sales',
13546
+ belongDistributorId: ''
13547
+ }).then(function (res) {
13548
+ var _res$data;
13549
+ // console.log(res)
13550
+ // debugger
13551
+ var list = (res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 || (_res$data = _res$data.data) === null || _res$data === void 0 ? void 0 : _res$data.list) || [];
13552
+ list.forEach(function (item, index) {
13553
+ item.name = "__$$wwopendata(".concat(item.userName, ", userName)(").concat(item.positionName, ")");
13554
+ // item.name = `__$$wwopendata(${item.userName}, userName)(${item.positionName})__$$wwopendata(哈哈+${index}, departmentName)`
13555
+ item.id = item.memberId;
13556
+ item.pid = '';
13557
+ item.iswwopendata = true;
13558
+ item.wwopendatatype = 'expression';
13559
+ });
13560
+ _this._list = list;
13561
+ });
13524
13562
  return _this;
13525
13563
  }
13526
13564
  _createClass(WxworksuiteMemberpickMobile, [{
13527
- key: "connectedCallback",
13528
- value: function connectedCallback() {
13529
- var _this2 = this;
13530
- _get(_getPrototypeOf(WxworksuiteMemberpickMobile.prototype), "connectedCallback", this).call(this);
13531
- // axios.post('/api/teapi/dy-biz/1032470355689738336/1273067686762516579', {
13532
- // member: {
13533
- // searchkey: '',
13534
- // orglimit: '',
13535
- // orgstructid: '',
13536
- // email: '',
13537
- // includechild: '1'
13538
- // }
13539
- // }).then((res: any) => {
13540
- // // console.log(res)
13541
- // const list = res?.data?.member || []
13542
- // list.forEach((item: any, index: number) => {
13543
- // item.name = `__$$wwopendata(${item.userinfoname}, userName)(${item.positionname})`
13544
- // // item.name = `__$$wwopendata(${item.userinfoname}, userName)(${item.positionname})__$$wwopendata(哈哈+${index}, departmentName)`
13545
- // item.id = item.memberid
13546
- // item.pid = ''
13547
- // item.iswwopendata = true
13548
- // item.wwopendatatype = 'expression'
13549
- // })
13550
- // this._list = list
13551
- // })
13552
- // console.log('issearch', this.issearch)
13553
- // console.log('userule', this.userule)
13554
- // debugger
13555
- this._isWxworkSuiteTenant = isWxworkSuiteTenant();
13556
- // debugger
13557
- normalAxios$1.post('/api/system/v1.0/member/getMemberList', {
13558
- name: '',
13559
- phoneNumber: '',
13560
- saleAreaCodePath: '',
13561
- positionName: '',
13562
- pageindex: 1,
13563
- pagesize: 99999,
13564
- notUseRule: !this.userule,
13565
- appcode: 'sales',
13566
- belongDistributorId: ''
13567
- }).then(function (res) {
13568
- var _res$data;
13569
- // console.log(res)
13570
- // debugger
13571
- var list = (res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 || (_res$data = _res$data.data) === null || _res$data === void 0 ? void 0 : _res$data.list) || [];
13572
- list.forEach(function (item, index) {
13573
- item.id = item.memberId;
13574
- item.pid = '';
13575
- if (_this2._isWxworkSuiteTenant) {
13576
- item.name = "__$$wwopendata(".concat(item.userName, ", userName)(").concat(item.positionName, ")");
13577
- // item.name = `__$$wwopendata(${item.userName}, userName)(${item.positionName})__$$wwopendata(哈哈+${index}, departmentName)`
13578
- item.iswwopendata = true;
13579
- item.wwopendatatype = 'expression';
13580
- } else {
13581
- item.name = "".concat(item.userName, "(").concat(item.positionName, ")");
13582
- }
13583
- });
13584
- _this2._list = list;
13585
- });
13586
- }
13587
- }, {
13588
13565
  key: "treeRef",
13589
13566
  get: function get() {
13590
13567
  var _this$renderRoot$quer, _this$renderRoot;
@@ -13652,7 +13629,7 @@ var WxworksuiteMemberpickMobile = /*#__PURE__*/function (_LitElement) {
13652
13629
  }, {
13653
13630
  key: "render",
13654
13631
  value: function render() {
13655
- return x(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n <wxworksuite-tree\n wwopendatatype=\"", "\"\n displaytype=\"", "\"\n expandicon=\"normal\"\n searchplaceholder=\"", "\"\n .issearch=\"", "\"\n .iswwopendata=\"", "\"\n .list=\"", "\"\n .ismulselect=\"", "\"\n singleselectmode=\"", "\"\n mulselectmode=\"", "\"\n @select=\"", "\"\n @check=\"", "\"\n ></wxworksuite-tree>\n "])), this._isWxworkSuiteTenant ? 'expression' : '', this.displaytype, this.searchplaceholder, this.issearch, this._isWxworkSuiteTenant, this._list, this.ismulselect, this.singleselectmode, this.mulselectmode, this._handleSelect, this._handleCheck);
13632
+ return x(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n <wxworksuite-tree\n wwopendatatype=\"expression\"\n displaytype=\"", "\"\n expandicon=\"normal\"\n searchplaceholder=\"", "\"\n .issearch=\"", "\"\n .iswwopendata=\"", "\"\n .list=\"", "\"\n .ismulselect=\"", "\"\n singleselectmode=\"", "\"\n mulselectmode=\"", "\"\n @select=\"", "\"\n @check=\"", "\"\n ></wxworksuite-tree>\n "])), this.displaytype, this.searchplaceholder, this.issearch, true, this._list, this.ismulselect, this.singleselectmode, this.mulselectmode, this._handleSelect, this._handleCheck);
13656
13633
  }
13657
13634
  }], [{
13658
13635
  key: "register",
@@ -13688,7 +13665,6 @@ __decorate([n$1({
13688
13665
  __decorate([n$1({
13689
13666
  type: String
13690
13667
  })], WxworksuiteMemberpickMobile.prototype, "singleselectmode", void 0);
13691
- __decorate([r$1()], WxworksuiteMemberpickMobile.prototype, "_isWxworkSuiteTenant", void 0);
13692
13668
  __decorate([r$1()], WxworksuiteMemberpickMobile.prototype, "_list", void 0);
13693
13669
 
13694
13670
  var _class;
@@ -14071,7 +14047,7 @@ var getSpuLocation = /*#__PURE__*/function () {
14071
14047
  var isload = false;
14072
14048
  setTimeout(function () {
14073
14049
  if (!isload) {
14074
- console.error('getSpuLocation timeout 100000');
14050
+ console.error('getSpuLocation timeout 10000');
14075
14051
  resolve(null);
14076
14052
  }
14077
14053
  }, 10000);
@@ -52726,6 +52702,43 @@ var setTitle = function setTitle(pagetitle) {
52726
52702
  // 父级spu容器 且 是APP
52727
52703
  ((_window = window) === null || _window === void 0 || (_window = _window.Native) === null || _window === void 0 ? void 0 : _window.setNavigationBarTitle) && window.Native.setNavigationBarTitle(pagetitle);
52728
52704
  };
52705
+ var getSpuContainerType = /*#__PURE__*/function () {
52706
+ var _ref = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee() {
52707
+ var _window2, _window3;
52708
+ return _regeneratorRuntime$1().wrap(function _callee$(_context) {
52709
+ while (1) switch (_context.prev = _context.next) {
52710
+ case 0:
52711
+ if (!((_window2 = window) !== null && _window2 !== void 0 && (_window2 = _window2.aPaaS) !== null && _window2 !== void 0 && _window2.getPhoto)) {
52712
+ _context.next = 4;
52713
+ break;
52714
+ }
52715
+ return _context.abrupt("return", 'app');
52716
+ case 4:
52717
+ if (!((_window3 = window) !== null && _window3 !== void 0 && (_window3 = _window3.Module) !== null && _window3 !== void 0 && _window3.spuContainerType)) {
52718
+ _context.next = 8;
52719
+ break;
52720
+ }
52721
+ return _context.abrupt("return", window.Module.spuContainerType);
52722
+ case 8:
52723
+ return _context.abrupt("return", '');
52724
+ case 9:
52725
+ case "end":
52726
+ return _context.stop();
52727
+ }
52728
+ }, _callee);
52729
+ }));
52730
+ return function getSpuContainerType() {
52731
+ return _ref.apply(this, arguments);
52732
+ };
52733
+ }();
52734
+ var isInApp = function isInApp() {
52735
+ var _window4, _window5;
52736
+ if ((_window4 = window) !== null && _window4 !== void 0 && (_window4 = _window4.aPaaS) !== null && _window4 !== void 0 && _window4.getPhoto || (_window5 = window) !== null && _window5 !== void 0 && (_window5 = _window5.top) !== null && _window5 !== void 0 && (_window5 = _window5.aPaaS) !== null && _window5 !== void 0 && _window5.getPhoto) {
52737
+ return true;
52738
+ } else {
52739
+ return false;
52740
+ }
52741
+ };
52729
52742
 
52730
52743
  function e(e){this.message=e;}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var r="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(r){var t=String(r).replace(/=+$/,"");if(t.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,a=0,i=0,c="";o=t.charAt(i++);~o&&(n=a%4?64*n+o:o,a++%4)?c+=String.fromCharCode(255&n>>(-2*a&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return c};function t(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw "Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,(function(e,r){var t=r.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t})))}(t)}catch(e){return r(t)}}function n(e){this.message=e;}function o(e,r){if("string"!=typeof e)throw new n("Invalid token specified");var o=!0===(r=r||{}).header?0:1;try{return JSON.parse(t(e.split(".")[o]))}catch(e){throw new n("Invalid token specified: "+e.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";
52731
52744
 
@@ -60674,7 +60687,8 @@ var Module = {
60674
60687
  getModuleData: core.getModuleData.bind(core),
60675
60688
  getEnvname: login.getEnvname.bind(login),
60676
60689
  getEnvData: core.getEnvData.bind(core),
60677
- checkModule: core.checkModule.bind(core)
60690
+ checkModule: core.checkModule.bind(core),
60691
+ getSpuContainerType: getSpuContainerType
60678
60692
  };
60679
60693
 
60680
- export { AMapLoader, Module, normalAxios as apaasAxios, normalAxios as axios, checkLogin, index as components, SPUWebPlugin as default, downloadService, expandexp, functionCheck, getDistance, getLocation, getRefreshToken, getToken, getTokenExpires, getUniqueid, getUser, v4 as getUuid, globalConfig, globalOptions, lsProxy, setTitle, singleLogin, spuAxios, spuConfig, ssProxy, startRefreshtoken, uploadService, wxworkSuite };
60694
+ export { AMapLoader, Module, normalAxios as apaasAxios, normalAxios as axios, checkLogin, index as components, SPUWebPlugin as default, downloadService, expandexp, functionCheck, getDistance, getLocation, getRefreshToken, getToken, getTokenExpires, getUniqueid, getUser, v4 as getUuid, globalConfig, globalOptions, isInApp, lsProxy, setTitle, singleLogin, spuAxios, spuConfig, ssProxy, startRefreshtoken, uploadService, wxworkSuite };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart100/spu-web-plugin",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "dev": "npm run build:types && rollup -c -w",
package/src/index.ts CHANGED
@@ -9,7 +9,7 @@ import { initAxios, spuAxios, axios } from './axios'
9
9
  import { initSpuConfig, spuConfig } from './spuConfig'
10
10
  import { globalConfig } from './globalConfig'
11
11
  import { downloadService, uploadService } from './oss'
12
- import { getUniqueid, functionCheck, setTitle } from './utils'
12
+ import { getUniqueid, functionCheck, setTitle, getSpuContainerType, isInApp } from './utils'
13
13
  import urlquery from './urlquery'
14
14
  import AMapLoader from './AMapLoader'
15
15
  import login from './login'
@@ -142,7 +142,8 @@ const Module = {
142
142
  getModuleData: core.getModuleData.bind(core),
143
143
  getEnvname: login.getEnvname.bind(login),
144
144
  getEnvData: core.getEnvData.bind(core),
145
- checkModule: core.checkModule.bind(core)
145
+ checkModule: core.checkModule.bind(core),
146
+ getSpuContainerType: getSpuContainerType
146
147
  }
147
148
 
148
149
 
@@ -164,6 +165,7 @@ export {
164
165
  getUuid,
165
166
  functionCheck,
166
167
  setTitle,
168
+ isInApp,
167
169
  AMapLoader,
168
170
  getToken,
169
171
  getTokenExpires,
package/src/location.ts CHANGED
@@ -59,7 +59,7 @@ const getSpuLocation = async (): Promise<Location> => {
59
59
  let isload = false
60
60
  setTimeout(() => {
61
61
  if (!isload) {
62
- console.error('getSpuLocation timeout 100000')
62
+ console.error('getSpuLocation timeout 10000')
63
63
  resolve(null)
64
64
  }
65
65
  }, 10000)