feat: ✨ 编辑会员新增默认头像展示
parent
ffe03fd785
commit
24554a0768
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
|
@ -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, // 表单加载状态
|
||||||
|
|
Loading…
Reference in New Issue