feat: 编辑会员新增默认头像展示

master
Yer 2023-09-13 17:25:35 +08:00
parent ffe03fd785
commit 24554a0768
2 changed files with 2 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -55,7 +55,7 @@
<Input v-model="form.id" v-show="false"/> <Input v-model="form.id" v-show="false"/>
<FormItem label="头像"> <FormItem label="头像">
<img :src="form.face" class="face" /> <img :src="form.face || defaultPic" class="face" />
<Button type="text" class="upload" @click="() => { <Button type="text" class="upload" @click="() => {
this.picModelFlag = true; this.picModelFlag = true;
this.$refs.ossManage.selectImage = true; this.$refs.ossManage.selectImage = true;
@ -114,6 +114,7 @@ export default {
}, },
data() { data() {
return { return {
defaultPic:require('@/assets/default.png'),
descTitle: "", // modal descTitle: "", // modal
descFlag: false, // descFlag: false, //
loading: true, // loading: true, //