1. 图片的动态路径
<img :src="loanResult.pullSuccess ? successImg: wrongImg " alt="">
data(){
return {
successImg: require('../../assets/image/success.png'),
wrongImg: require('../../assets/image/wrong.png'),
}
}
2. post请求的路径拼接
export function getPullLoanInfo(params) {
return request({
url: `${systemName}/loanDomain/pullLoanInfo?pullDate=${params}`,
method: 'post'
})
}
3.
功能:下拉列表是接口获取的数据,但是我进页面的时候就要默认显示接口获取数据的第一条,此时用个回调
this.$nextTick(function() {
// 仅在整个视图都被渲染之后才会运行的代码
this.formInline.billNo = this.billNoList[0].value
})
4.以前所有用过V-if的地方能用nextTick代替吗?