Commit 140cc869 authored by Dragon Dean's avatar Dragon Dean

修复价格列表数据串的问题

parent 037cfc63
...@@ -406,7 +406,8 @@ export default { ...@@ -406,7 +406,8 @@ export default {
AuditStatusEnum: AuditStatusEnum, AuditStatusEnum: AuditStatusEnum,
locationList: getDictDatas(DICT_TYPE.ECW_CONTAINER_LOCATION), locationList: getDictDatas(DICT_TYPE.ECW_CONTAINER_LOCATION),
// 查看更多阶梯价 // 查看更多阶梯价
showMoreStepPriceItem: null showMoreStepPriceItem: null,
entryPath: null
}; };
}, },
...@@ -545,6 +546,10 @@ export default { ...@@ -545,6 +546,10 @@ export default {
// if(!this.$route.query.product_id){ // if(!this.$route.query.product_id){
// return this.product = null // return this.product = null
// } // }
// 价格列表 跟 商品的价格列表,有时候商品价格列表的路由变动会导致价格列表也执行此处代码,所以做一个判断排除
// https://zentao.test.jdshangmen.com/bug-view-4928.html
if(this.$route.path != this.entryPath) return
let productId = this.product?.id let productId = this.product?.id
if(this.$route.name === 'ProductPrice'){ if(this.$route.name === 'ProductPrice'){
if(this.$route.query.product_id != productId){ if(this.$route.query.product_id != productId){
...@@ -562,6 +567,7 @@ export default { ...@@ -562,6 +567,7 @@ export default {
} }
}, },
created() { created() {
this.entryPath = this.$route.path
if(this.$route.query.product_type){ if(this.$route.query.product_type){
this.$set(this.queryParams, 'typeId', +this.$route.query.product_type); this.$set(this.queryParams, 'typeId', +this.$route.query.product_type);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment