Skip to content

Commit 171e270

Browse files
committedAug 13, 2019
可以输入origin
1 parent d2423df commit 171e270

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎src/App.js

+8
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,11 @@ class App extends Component {
339339
return ret;
340340
}
341341

342+
onChoosedOriginChanged(value) {
343+
this.setState({
344+
origin:value,
345+
})
346+
}
342347

343348
render() {
344349
const {tc} = this.state;
@@ -374,6 +379,9 @@ class App extends Component {
374379
<Divider/>
375380
{this.state.tc_index>0?<div>
376381
<div className="meta-info">
382+
<input type="text" value = {this.state.choosedOrigin}
383+
onChange={(e)=>this.onChoosedOriginChanged(e.target.value)}/>
384+
377385
<div>环境:{this.state.origin}, origin:{this.currentOrigin()}</div>
378386
<GlobalInput global_input={tc.global_input}
379387
onGlobalInputChanged={this.onGlobalInputChanged}

0 commit comments

Comments
 (0)