Commit 0c6e3828 by xuyl

修复欢迎语组件传参

1 parent 60f95e46
......@@ -211,7 +211,7 @@ export default {
groupListApi: this.$apis.welcomeword.getGroupListApi,
materialListApi: this.$apis.welcomeword.getMaterialListApi,
params: {
merchantId: this.$globalState.session.merchantId
merchant: this.$globalState.session.merchantId
}
},
{
......@@ -224,7 +224,7 @@ export default {
templateSaveApi: this.$apis.welcomeword.templateSave,
templateDetailApi: this.$apis.welcomeword.templateDetail,
params: {
merchantId: this.$globalState.session.merchantId
merchant: this.$globalState.session.merchantId
}
}
],
......@@ -361,8 +361,8 @@ export default {
selectChange(val) {
// 选择门店时,替换欢迎语组件当中的所有merchantId
this.btnList.forEach(item =>{
if (item.params && item.params.hasOwnProperty('merchantId')){
item.params.merchantId = val
if (item.params && item.params.hasOwnProperty('merchant')){
item.params.merchant = val
}
if(item.funParams && Object.prototype.toString.call(item.funParams) === '[object Array]'){
item.funParams.forEach(funArr =>{
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!