Commit ef5a1341 by 杨明

fixed

1 parent 93a02df0
......@@ -229,7 +229,8 @@ export default {
watch: {
'basicForm.businessType': {
handler(nVal) {
if (nVal) {
console.log(nVal)
if (nVal && nVal != 1) {
this.btnList = this.btnList.filter(item => item.type != 'link')
}
},
......@@ -286,7 +287,14 @@ export default {
this.$apis.expert.expertDetail({ id }).then(res => {
if (res?.id) {
this.selectPerson = res
this.$refs.welcome.setDetail(res.welcomeInfo)
// this.$refs.welcome.setDetail(res.welcomeInfo)
if (res.welcomeInfo.length != 0) {
const previewList = res.welcomeInfo.map(item => {
if (item.attType == 7) item.attContent = JSON.parse(item.attContent)
return item
})
this.$refs.welcome.updateList(previewList)
}
this.basicForm.businessType = res.businessType
this.basicForm.expertType = res.expertType
this.merchantId = res.merchantId
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!