mirror of
https://github.com/yudaocode/yudao-ui-admin-vue3.git
synced 2026-05-09 08:47:40 +00:00
🐛 修复 user 在 IDEA 报错的问题
This commit is contained in:
@@ -32,13 +32,13 @@ const message = useMessage() // 消息弹窗
|
||||
const dialogVisible = ref(false) // 弹窗的是否展示
|
||||
const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用
|
||||
const formData = ref({
|
||||
id: undefined,
|
||||
id: -1,
|
||||
nickname: '',
|
||||
username: '',
|
||||
roleIds: []
|
||||
})
|
||||
const formRef = ref() // 表单 Ref
|
||||
const roleList = ref([]) // 角色的列表
|
||||
const roleList = ref([] as RoleApi.RoleVO[]) // 角色的列表
|
||||
|
||||
/** 打开弹窗 */
|
||||
const open = async (row: UserApi.UserVO) => {
|
||||
@@ -86,7 +86,7 @@ const submitForm = async () => {
|
||||
/** 重置表单 */
|
||||
const resetForm = () => {
|
||||
formData.value = {
|
||||
id: undefined,
|
||||
id: -1,
|
||||
nickname: '',
|
||||
username: '',
|
||||
roleIds: []
|
||||
|
||||
Reference in New Issue
Block a user