|
@@ -25,7 +25,7 @@ class TencentDeploy extends Component {
|
|
|
componentWillMount() {
|
|
componentWillMount() {
|
|
|
this._isMounted = true;
|
|
this._isMounted = true;
|
|
|
let {userID} = this.state;
|
|
let {userID} = this.state;
|
|
|
- if (userID !== 'demo') {
|
|
|
|
|
|
|
+ if (userID !== '') {
|
|
|
request(graphqlUrl, SHOW_APIGROUP, {user_id: userID}).then(res => {
|
|
request(graphqlUrl, SHOW_APIGROUP, {user_id: userID}).then(res => {
|
|
|
let allDeployed = res.apiGWGroupbyprops;
|
|
let allDeployed = res.apiGWGroupbyprops;
|
|
|
let deployed = allDeployed.filter(deployed =>
|
|
let deployed = allDeployed.filter(deployed =>
|
|
@@ -115,10 +115,9 @@ class TencentDeploy extends Component {
|
|
|
<span className={'schema-table-content'}>{deploy.groupName.replace(regexp, '')}</span>
|
|
<span className={'schema-table-content'}>{deploy.groupName.replace(regexp, '')}</span>
|
|
|
</Col>
|
|
</Col>
|
|
|
<Col span={15}>
|
|
<Col span={15}>
|
|
|
- <span
|
|
|
|
|
- className={'schema-table-content'}>{`http://${deploy.defaultDomain}/test/graphql`} </span>
|
|
|
|
|
|
|
+ <span className={'schema-table-content'}>{`http://${deploy.defaultDomain}/test`} </span>
|
|
|
<Icon type="copy" theme="twoTone" onClick={() => {
|
|
<Icon type="copy" theme="twoTone" onClick={() => {
|
|
|
- copy(url);
|
|
|
|
|
|
|
+ copy(`http://${deploy.defaultDomain}/test`);
|
|
|
message.success('复制成功.');
|
|
message.success('复制成功.');
|
|
|
}}/>
|
|
}}/>
|
|
|
</Col>
|
|
</Col>
|