|
@@ -100,7 +100,7 @@ export default {
|
|
|
let text = row.state === 0 ? '启用' : '禁用';
|
|
|
this.$confirm('确认要' + text + '该用户吗?', '警告', { type: 'warning' })
|
|
|
.then(() => {
|
|
|
- this.post({ url: '/work/user/edit', data: { id: row.id, state: row.state } })
|
|
|
+ this.post({ url: '/work/user/enable', data: { id: row.id, state: row.state } })
|
|
|
.then((response) => {
|
|
|
this.$modal.msgSuccess(text + '成功');
|
|
|
})
|