mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
fix: 修复用户新增时,岗位下拉未清空Bug,抽取form-tip组件
This commit is contained in:
@ -27,7 +27,10 @@ const roleOptions = ref<CommonType.Option<CommonType.IdType>[]>([]);
|
||||
watch(
|
||||
() => props.deptId,
|
||||
() => {
|
||||
if (!props.deptId) return;
|
||||
if (!props.deptId) {
|
||||
roleOptions.value = [];
|
||||
return;
|
||||
}
|
||||
getRoleOptions();
|
||||
},
|
||||
{ immediate: true }
|
||||
|
Reference in New Issue
Block a user