From 68cdedb140b703c18690dca8b2ad38ec79ad2a15 Mon Sep 17 00:00:00 2001 From: tengge1 <930372551@qq.com> Date: Sat, 6 Jul 2019 17:10:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/editor2/assets/window/EditWindow.jsx | 26 ++----------------- 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/ShadowEditor.Web/src/editor2/assets/window/EditWindow.jsx b/ShadowEditor.Web/src/editor2/assets/window/EditWindow.jsx index 0307ff97..2d73fa79 100644 --- a/ShadowEditor.Web/src/editor2/assets/window/EditWindow.jsx +++ b/ShadowEditor.Web/src/editor2/assets/window/EditWindow.jsx @@ -9,12 +9,6 @@ class EditWindow extends React.Component { constructor(props) { super(props); - this.type = null; - this.typeName = null; - this.data = null; - this.saveUrl = null; - this.callback = null; - this.state = { categories: null, categoryID: null, @@ -29,12 +23,6 @@ class EditWindow extends React.Component { const { type, typeName, data, saveUrl, callback } = this.props; const { categories, categoryID } = this.state; - this.type = type; - this.typeName = typeName; - this.data = data; - this.saveUrl = saveUrl; - this.callback = callback; - return { var options = { @@ -85,7 +63,7 @@ class EditWindow extends React.Component { }); this.setState({ categories: options, - categoryID: this.data.CategoryID, + categoryID: data.CategoryID, }); }); }