提交 fc7d5463 authored 作者: 徐立's avatar 徐立

调整二维码引入

上级 db53adf8
import React, { Component } from 'react'; import React, { Component } from 'react';
import { message, Icon, Spin } from 'antd'; import { message, Icon, Spin } from 'antd';
import QRCode from 'qrcode.react'; import QRCode from 'qrcode.react';
import config from '@/config/config';
import fetch from 'dva/fetch'; import fetch from 'dva/fetch';
import FormdataWrapper from '../utils/object-to-formdata-custom'; import FormdataWrapper from '../utils/object-to-formdata-custom';
import { isJSON } from '../utils/utils'; import { isJSON } from '../utils/utils';
...@@ -21,12 +20,6 @@ export default class LoginWithQrCode extends Component { ...@@ -21,12 +20,6 @@ export default class LoginWithQrCode extends Component {
const { wxSocketGateWay, mockServer } = this.props; const { wxSocketGateWay, mockServer } = this.props;
this.wxSocketGateWay = wxSocketGateWay; this.wxSocketGateWay = wxSocketGateWay;
this.mockServer = mockServer; this.mockServer = mockServer;
if (!wxSocketGateWay) {
this.wxSocketGateWay = config.wxSocketGateWay;
}
if (!mockServer) {
this.mockServer = config.mockServer;
}
this.state = { this.state = {
connectTimes: 0, connectTimes: 0,
sessionId: '', sessionId: '',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论