@@ -85,7 +85,7 @@ import axios from 'axios';
import { useUserStore } from '@/stores';
const store = useUserStore();
-const userInfo = store.getUserInfo();
+const userInfo = store.userInfo;
const columns = [
{
@@ -97,7 +97,7 @@ const columns = [
slotName: 'mobile',
},
];
-const data = reactive([userInfo]);
+
const infoVisible = ref(false);
const imageVisible = ref(false);
const mobileVisible = ref(false);
@@ -108,6 +108,10 @@ const formRef = ref();
const isSendCaptcha = ref(false);
const uploadInputRef = ref();
+const dataSource = computed(() => {
+ return userInfo ? [userInfo] : [];
+});
+
// 表单校验规则
const formRules = {
mobile: [