inventory-web/src/views/system/UserCreate.vue
```vue
<<<<<<< SEARCH
<el-button type="primary" @click="handleCreate">
+ 新增员工
</el-button>
=======
<el-button v-if="userStore.hasPermission('system_user:operation')" type="primary" @click="handleCreate">
+ 新增员工
</el-button>
>>>>>>> REPLACE
```
Co-authored-by: aider (openai/DeepSeek-V3.2-Thinking) <aider@aider.chat>
This commit is contained in:
@ -132,7 +132,7 @@ def get_users():
|
||||
@jwt_required()
|
||||
@permission_required('system_user:operation')
|
||||
def delete_user(user_id):
|
||||
try {
|
||||
try:
|
||||
claims = get_jwt()
|
||||
operator_role = claims.get('role')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user