mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 11:09:19 +08:00
fix: 修复个人信息页面Form.useForm报错问题,改用reactive和ref
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script lang="ts" setup>
|
||||
import type { UserVO } from '#/api/system/user/types';
|
||||
|
||||
import { ref } from 'vue';
|
||||
import { reactive, ref } from 'vue';
|
||||
|
||||
import { Page } from '@vben/common-ui';
|
||||
|
||||
@@ -18,13 +18,13 @@ const userInfo = ref<UserVO.UserInfoVO | null>(null);
|
||||
const avatarLoading = ref(false);
|
||||
|
||||
// 表单数据
|
||||
const formData = ref({
|
||||
const formData = reactive({
|
||||
realName: '',
|
||||
phone: '',
|
||||
remark: '',
|
||||
});
|
||||
|
||||
const [formRef] = Form.useForm();
|
||||
const formRef = ref<any>(null);
|
||||
|
||||
async function fetchUserInfo() {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user