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:
dxc
2026-02-27 14:34:48 +08:00
parent 6fa5233ea6
commit 00c45c72fb
2 changed files with 2 additions and 4 deletions

View File

@ -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')