From 147d66c756ace7a91d4fdbae5355cfb6f9134b5b Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Mon, 5 Aug 2024 17:26:20 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/user/user.js | 4 ++-- src/views/system/user/add.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/user/user.js b/src/api/user/user.js index a8d54c2..be57ca7 100644 --- a/src/api/user/user.js +++ b/src/api/user/user.js @@ -21,9 +21,9 @@ export const getUserAccount = () => { method: 'get' }) } -export const judgeIsSameRole = () => { +export const judgeIsSameRole = (userId) => { return request({ - url: '/admin/mosr/user/company/same', + url: `/admin/mosr/user/company/same/${userId}`, method: 'get' }) } diff --git a/src/views/system/user/add.vue b/src/views/system/user/add.vue index f7332db..68b31a2 100644 --- a/src/views/system/user/add.vue +++ b/src/views/system/user/add.vue @@ -122,9 +122,9 @@ const schame = computed(() => { }, on: { change: async (val) => { - const {code, data} = await judgeIsSameRole() + const {code, data} = await judgeIsSameRole(form.value.getValues().userId) if (code === 1000) { - console.log('currentRoleArray.value', currentRoleArray.value) + console.log('currentRoleArray.value',data) if (currentRoleArray.value.length !== 0) { val.forEach(selectItem => { currentRoleArray.value.forEach(currentItem => {