From 5d641e5de49e64b89c998f28f9f1cf65515e1721 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Tue, 30 Apr 2024 22:09:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E9=83=A8=E9=97=A8=E5=8F=98=E5=8C=96=E5=90=8E=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E9=80=89=E6=8B=A9=E5=B2=97=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/user/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index e8e0c23..148e8af 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -287,11 +287,11 @@ import api from '@/api/system/user'; import { UserForm, UserQuery, UserVO } from '@/api/system/user/types'; import { DeptVO } from '@/api/system/dept/types'; import { RoleVO } from '@/api/system/role/types'; -import {PostQuery, PostVO} from '@/api/system/post/types'; +import { PostQuery, PostVO } from '@/api/system/post/types'; import { treeselect } from '@/api/system/dept'; import { globalHeaders } from '@/utils/request'; import { to } from 'await-to-js'; -import {optionselect} from "@/api/system/post"; +import { optionselect } from '@/api/system/post'; const router = useRouter(); const { proxy } = getCurrentInstance() as ComponentInternalInstance; @@ -653,6 +653,8 @@ watch( async () => { const response = await optionselect(form.value.deptId); postOptions.value = response.data; + /** 变化后需要重新选择岗位 */ + form.value.postIds = []; } );