From 8d66ff34fae5b048a6b7923cc75d34f13a08be9d Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 02 八月 2022 11:42:43 +0800
Subject: [PATCH] Merge branch 'develop'

---
 src/views/appmanage/scriptform/index.jsx |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/views/appmanage/scriptform/index.jsx b/src/views/appmanage/scriptform/index.jsx
index be8c9af..67c6224 100644
--- a/src/views/appmanage/scriptform/index.jsx
+++ b/src/views/appmanage/scriptform/index.jsx
@@ -17,7 +17,7 @@
   }
 
   state = {
-    type: 'subapp',
+    type: 'view',
     sublist: [],
     views: [],
     appId: '',
@@ -43,7 +43,9 @@
 
     this.viewList = {}
 
-    this.setState({sublist, appId, subAppId})
+    this.setState({sublist, appId, subAppId}, () => {
+      this.getViews()
+    })
   }
 
   /**
@@ -166,7 +168,7 @@
               </Tooltip>
             }>
               {getFieldDecorator('VType', {
-                initialValue: 'subapp',
+                initialValue: 'view',
                 rules: [{
                   required: true,
                   message: '璇烽�夋嫨绫诲瀷!'

--
Gitblit v1.8.0