export default { data() { return { doctorId: '', doctorInfo: { tagList: [], paramList: [], }, } }, mounted() { this.fetchDetail() }, methods: { async fetchDetail() { try { this.doctorId = this.$route.query.id const res = await this.$http.api.fetchDoctorDetail({ doctorId: this.doctorId, }) this.doctorInfo = { ...this.clubInfo, ...res.data } } catch (error) { console.log(error) } if (this.doctorInfo.bannerList.length <= 0) { this.doctorInfo.bannerList.push('/placeholder.png') } }, }, }