diff --git a/src/pages/Document/index.js b/src/pages/Document/index.js index b65ee1dd..bc05efb8 100644 --- a/src/pages/Document/index.js +++ b/src/pages/Document/index.js @@ -54,7 +54,7 @@ export default class DevDocument extends Component { onChangeTag(tag) { const { storage, conf } = this.props; conf.docTag = tag; - this.setState({ tag }, () => { + this.setState({ tag, query: '' }, () => { storage.set({ conf }); }); }