Explorar o código

role selection

albertshaw %!s(int64=8) %!d(string=hai) anos
pai
achega
7232c509b0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      js/component/manageCenter/set/modal.jsx

+ 1 - 1
js/component/manageCenter/set/modal.jsx

@@ -97,7 +97,7 @@ export default class TheModal extends React.Component {
     }
 
     getRolesSelection() {
-        if (this.state.id > 1) {
+        if (this.state.id != '1') {
             return <li>
                 <span className='modal-text'>角色</span>
                 <Select