vue中标签拼接动态属性值, 在js文件中使用vuex

vue中

html中标签·属性值的拼接

js代码

data() {
    return {
      title: this.$route.query.sort,
      value: '',
    };
  },

a.js中

import store from '../store';
.....

store.commit('addMsg', contentMsg);

 

你可能感兴趣的:(vue)