保誠-保戶業務員媒合平台
wayne
2022-01-26 6fa4bba623713c396432ba8b863846883d6a1906
PAMapp/components/Ui/UiAvatar.vue
@@ -2,7 +2,7 @@
    <el-avatar
        :size="size"
        :src="imgSrc"
        class="pam-avatar cursor--pointer"
        class="pam-avatar cursor--pointer fix-chrome-click--issue"
    ></el-avatar>
</template>
@@ -11,11 +11,14 @@
@Component
export default class UiAvatar extends Vue {
    @Prop() size!: number;
    @Prop() fileName!: string;
    @Prop()
    size!: number;
    @Prop()
    agentNo!: string;
    get imgSrc() {
        return process.env.BASE_URL + '/consultant/avatar/' + this.fileName;
        return process.env.BASE_URL + '/consultant/avatar/' + this.agentNo;
    }
}
</script>
</script>