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 45ff3fab [Improve] admin not show edit (#463) 45ff3fab is described below commit 45ff3fab06858a2e87b05c3923c642f389d1d77e Author: VampireAchao <ac...@apache.org> AuthorDate: Wed Jul 24 16:52:24 2024 +0800 [Improve] admin not show edit (#463) * [Improve] show admin configureDataPermission * [Improve] admin not show edit --- src/routes/System/User/index.js | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/routes/System/User/index.js b/src/routes/System/User/index.js index 22443661..b408ad27 100644 --- a/src/routes/System/User/index.js +++ b/src/routes/System/User/index.js @@ -16,7 +16,7 @@ */ import React, { Component } from "react"; -import { Table, Input, Button, message, Popconfirm, Switch } from "antd"; +import { Button, Input, message, Popconfirm, Switch, Table } from "antd"; import { connect } from "dva"; import AddModal from "./AddModal"; import DataPermModal from "./DataPermModal"; @@ -309,18 +309,18 @@ export default class Manage extends Component { ellipsis: true, render: (text, record) => { return ( - <div> - <AuthButton perms="system:manager:edit"> - <span - className="edit" - onClick={() => { - this.editClick(record); - }} - > - {getIntlContent("SHENYU.SYSTEM.EDITOR")} - </span> - </AuthButton> - {record.userName !== "admin" && ( + record.userName !== "admin" && ( + <div> + <AuthButton perms="system:manager:edit"> + <span + className="edit" + onClick={() => { + this.editClick(record); + }} + > + {getIntlContent("SHENYU.SYSTEM.EDITOR")} + </span> + </AuthButton> <AuthButton perms="system:manager:configureDataPermission"> <span @@ -332,8 +332,8 @@ export default class Manage extends Component { {getIntlContent("SHENYU.BUTTON.DATA.PERMISSION.CONFIG")} </span> </AuthButton> - )} - </div> + </div> + ) ); }, },