vue中
html中标签·属性值的拼接
<van-field v-model="value" :placeholder="'请输入' + title" :clearable="true" />
js代码
data() {
return {
title: this.$route.query.sort,
value: '',
};
},
a.js中
import store from '../store';
.....
store.commit('addMsg', contentMsg);