From 45ab1a2697eb18b8c96ee6fed2c99595f9da9fe6 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Mon, 29 Jan 2024 17:15:28 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AA=20optimize:=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/order/list/list.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/pages/order/list/list.js b/src/pages/order/list/list.js index 38bdbe56..61d64488 100644 --- a/src/pages/order/list/list.js +++ b/src/pages/order/list/list.js @@ -577,13 +577,6 @@ export default class orderList extends React.Component { // 监听组件内部状态的变化: componentDidUpdate(prevProps, prevState) { // 参数分别为改变之前的数据状态对象 - if (prevState.key_word != this.state.key_word && !this.state.key_word) { - this.getOrderFn() - } - if (prevState.option != this.state.option && !this.state.option) { - this.getOrderFn() - this.setState({ key_word: "" }) - } if (prevState.status != this.state.status) { this.getOrderFn() }