1
0
forked from dyf/dyf-vue-ui

app用户管理bug修复

This commit is contained in:
fengerli
2025-07-31 18:59:12 +08:00
parent a121e75966
commit 15b90e2362
3 changed files with 9 additions and 7 deletions

View File

@ -75,7 +75,7 @@ export const userAllCustomerAll = () => {
export const deviceUnbind = (params: any) => {
return request({
url: '/api/device/unbind',
method: 'GET',
method: 'delete',
params
})
}

View File

@ -30,7 +30,7 @@ export const userStatus = (data: any): AxiosPromise => {
// 解绑设备
export const deviceUnBind = (data: any): AxiosPromise => {
return request({
url: '/api/app/device/unBind',
url: '/api/device/unbind',
method: 'delete',
data,
headers: {

View File

@ -58,6 +58,7 @@ const queryParams = reactive({
deviceImei: ''
})
function openDialog(row: OperLogForm) {
console.log(row,'roweee');
info.value = row;
open.value = true;
getList();
@ -105,7 +106,8 @@ const handleUnbind = (row) => {
}).then(() => {
const data = {
// deviceMac: row.deviceMac,
id: row.id
id: row.id,
userId:info.value.userId
}
api.deviceUnBind(data).then(() => {
proxy?.$modal.msgSuccess({ type: 'success', message: '解绑成功!' })