fmui-base 2.1.21 → 2.1.22

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/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  ---npm publish
4
4
 
5
5
  ## 更新日志
6
+ - 2.1.22:上传组件去token
6
7
  - 2.1.21:表单组件去token
7
8
  - 2.1.20:选人组件兼容老数据,关联字段编辑时必填不校验
8
9
  - 2.1.19:选人组件回显去除接口token
@@ -190,7 +190,7 @@ var PageHome = function (_React$Component) {
190
190
  var dir = props.dir;
191
191
  var businessExt = props.extensions;
192
192
  var context = document.getElementById("context").value;
193
- var token = document.getElementById("token").value;
193
+ var token = getLoginUserInfo().token;
194
194
  _this.state = {
195
195
  required: required,
196
196
  canAdd: canAdd,
@@ -206,9 +206,9 @@ var PageHome = function (_React$Component) {
206
206
  businessExt: businessExt,
207
207
  limitNo: limitNo,
208
208
  context: context,
209
- uploadUrl: context + '/api/m/plugin/attachment/mobile/createFile?token=' + token,
209
+ uploadUrl: context + '/api/m/plugin/attachment/mobile/createFile',
210
210
  urlPrev: context + '/api/m/plugin/attachment/mobile/viewImage?token=' + token + '&fid=',
211
- queryUrl: context + '/api/m/plugin/attachment/mobile/getAttachmentByIds?token=' + token + '&ids=',
211
+ queryUrl: context + '/api/m/plugin/attachment/mobile/getAttachmentByIds?ids=',
212
212
  //queryUrl: context + '/client/approve/getCanBackActivity?ids=',
213
213
  token: token,
214
214
  isInit: false,
@@ -546,7 +546,8 @@ var PageHome = function (_React$Component) {
546
546
  fetch(t.state.queryUrl + initIds, {
547
547
  method: "POST",
548
548
  headers: {
549
- 'Content-Type': 'application/x-www-form-urlencoded'
549
+ 'Content-Type': 'application/x-www-form-urlencoded',
550
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
550
551
  // body:'token='+t.state.token,
551
552
  // headers: {
552
553
  // "Content-Type": "application/x-www-form-urlencoded",
@@ -644,7 +645,7 @@ var PageHome = function (_React$Component) {
644
645
  return t.state.uploadType == 'image' ? _react2.default.createElement(
645
646
  'div',
646
647
  { className: 'upload-image-item', key: i },
647
- _react2.default.createElement('img', { width: '100', height: '98', src: t.state.urlPrev + item.id + '&token=' + t.state.token }),
648
+ _react2.default.createElement('img', { width: '100', height: '98', src: t.state.urlPrev + item.id }),
648
649
  _react2.default.createElement('i', { className: t.state.canDel ? 'iconfont icon-minus' : 't-DN', onClick: _this3.del.bind(_this3, i) })
649
650
  ) :
650
651
  // <div className="t-FBH" key={i} >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.1.21",
3
+ "version": "2.1.22",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",