Commit 87518d08716a9f8b3c280abeffcda8d5cfc9101a

Authored by fengtao
1 parent db09f298

pref:优化个人资料上传头像显示加载状态

... ... @@ -54,10 +54,9 @@
54 54 <Description
55 55 class="mt-8"
56 56 :column="1"
57   - :schema="schema"
58 57 :bordered="true"
59 58 :data="getPersonalDetailValue"
60   - @register="registerDesc"
  59 + :schema="schema"
61 60 />
62 61 </div>
63 62 <div
... ... @@ -84,7 +83,7 @@
84 83 import { BasicModal, useModalInner } from '/@/components/Modal/index';
85 84 import { BasicForm, useForm } from '/@/components/Form/index';
86 85 import { formSchema } from './config';
87   - import { Description, DescItem, useDescription } from '/@/components/Description/index';
  86 + import { Description, DescItem } from '/@/components/Description/index';
88 87 import { uploadApi, personalPut } from '/@/api/personal/index';
89 88 import { useMessage } from '/@/hooks/web/useMessage';
90 89 import { USER_INFO_KEY } from '/@/enums/cacheEnum';
... ... @@ -121,6 +120,14 @@
121 120 label: '创建时间:',
122 121 },
123 122 ];
  123 + const mockData: Recordable = {
  124 + username: 'test',
  125 + phoneNumber: 'VB',
  126 + email: '123',
  127 + realName: '15695909xxx',
  128 + accountExpireTime: '190848757@qq.com',
  129 + createTime: '厦门市思明区',
  130 + };
124 131 export default defineComponent({
125 132 name: 'Index',
126 133 components: { BasicModal, BasicForm, Description, Upload, PlusOutlined, LoadingOutlined },
... ... @@ -136,12 +143,6 @@
136 143 const getData: any = ref({});
137 144 const updataPersonlData: any = ref({});
138 145 const userStore = useUserStore();
139   - // const getUpdateUserInfo: any = ref({});
140   - const [registerDesc] = useDescription({
141   - title: '个人详情',
142   - schema: schema,
143   - });
144   -
145 146 const peresonalPic = ref();
146 147
147 148 const customUploadqrcodePic = async ({ file }) => {
... ... @@ -242,11 +243,11 @@
242 243 compHeight,
243 244 handleSubmit,
244 245 getPersonalDetailValue,
245   - registerDesc,
246 246 schema,
247 247 registerModal,
248 248 registerForm,
249 249 loading,
  250 + mockData
250 251 };
251 252 },
252 253 });
... ...