You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by li...@apache.org on 2022/12/08 15:06:28 UTC

[shenyu-dashboard] branch master updated: Fixed edit app auth failed (#257)

This is an automated email from the ASF dual-hosted git repository.

likeguo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new 7a084240 Fixed edit app auth failed (#257)
7a084240 is described below

commit 7a084240723e4a07832bc6be1d32bb6c41b72713
Author: Liming Deng <li...@gmail.com>
AuthorDate: Thu Dec 8 23:06:23 2022 +0800

    Fixed edit app auth failed (#257)
---
 src/routes/System/AppAuth/AddModal.js | 2 ++
 src/routes/System/Plugin/index.js     | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/routes/System/AppAuth/AddModal.js b/src/routes/System/AppAuth/AddModal.js
index b9043120..3d4164b5 100644
--- a/src/routes/System/AppAuth/AddModal.js
+++ b/src/routes/System/AppAuth/AddModal.js
@@ -31,6 +31,7 @@ class AddModal extends Component {
     }];
    const pathDatas = props.authPathVOList || [{
      "path": "",
+     "enabled": true,
    }];
    this.columns = [
      {
@@ -110,6 +111,7 @@ class AddModal extends Component {
     const pathDatas = this.state.pathDatas
     const newData = {
       path: '',
+      enabled: true,
     };
     this.setState({
       pathDatas: [...pathDatas, newData]
diff --git a/src/routes/System/Plugin/index.js b/src/routes/System/Plugin/index.js
index 6e3c6ae7..da2b68cf 100644
--- a/src/routes/System/Plugin/index.js
+++ b/src/routes/System/Plugin/index.js
@@ -411,7 +411,7 @@ export default class Plugin extends Component {
                 <Tag color="#3b9a9c">{record.sort}</Tag>
               </div>
             );
-            const t = JSON.stringify(JSON.parse(text !== null?text:'{}'), null, 4) ;
+            const t = JSON.stringify(JSON.parse(text !== null && text.length > 0?text:'{}'), null, 4) ;
             const content = (
               <div>
                 <Text type="secondary">{`${getIntlContent("SHENYU.SYSTEM.CREATETIME") }: ${ record.dateCreated}`}</Text>