dlt-for-react 1.0.9 → 1.0.11

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.
@@ -200,7 +200,8 @@ var Home = function (_React$Component) {
200
200
  var oldPwd = (0, _rsa.encryptedString)(key, oldPassWord);
201
201
 
202
202
  //修改密码
203
- (0, _NHFetch3.default)('api/zhxg-xtgl/openapi/users/password/update?oldPassword=' + oldPwd + '&newPassword=' + newPwd, 'post', {}).then(function (res) {
203
+ var baseUrl = window.xtglUrl || 'api/hq-xtgl';
204
+ (0, _NHFetch3.default)(baseUrl + '/openapi/users/password/update?oldPassword=' + oldPwd + '&newPassword=' + newPwd, 'post', {}).then(function (res) {
204
205
  if (res && res.data.meta['success']) {
205
206
  _this.passWordForm.resetFields();
206
207
  _this.nhEditPassWordModal.close();
@@ -248,25 +249,6 @@ var Home = function (_React$Component) {
248
249
  (0, _createClass3.default)(Home, [{
249
250
  key: 'componentDidMount',
250
251
  value: function componentDidMount() {}
251
- // let userLogin = getLoginUser();
252
- // //获取用户信息
253
- // NHFetch(`api/zhxg-fwgl/fwgl/fwgl/${userLogin.userId}/getUserMsgByUserId`, 'get').then(res => {
254
- // let userSex = '1';
255
- // if (res && res.data) {
256
- // userSex = res.data.XBM;
257
- // }
258
- // this.setState({ userSex, username: userLogin.userName });
259
- // })
260
- // //获取用户功能
261
- // NHFetch(`api/zhxg-fwgl/fwgl/fwgl/${userLogin.userId}/getFwlbMsgByUserId`, 'get').then(res => {
262
- // let searchData = [];
263
- // if (res && res.data) {
264
- // searchData = res.data;
265
- // searchData = searchData.filter(item => hasAuth(`zhxg_fwgl_home:${item.wfwbz.toLowerCase()}`));
266
- // }
267
- // this.setState({ searchData });
268
- // })
269
-
270
252
 
271
253
  /**
272
254
  * 打开密码修改面板