🐛 修复 user 在 IDEA 报错的问题

This commit is contained in:
YunaiV committed 2023-12-03 01:03:41 +08:00
1 parent fa421d0895
commit 3d2d48b601
6 files changed
+29 -40

No files matched your search

+3 -3
View File
@@ -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: []