Commit 969fa8ed by 匡雅琴

修改获取门店接口

1 parent f6f2e7ed
......@@ -67,17 +67,17 @@ export default {
...mapActions(['setBoutiqueMerchantid']),
async init() {
this.tabObject = this.$route.query
const { merchantName, year } = this.$route.query
const { year } = this.$route.query
this.year = year
// 获取门店列表
const _merchantList = await this.getMerchant(merchantName)
const _merchantList = await this.getMerchant()
this.merchantList = _merchantList
},
// 获取门店列表
getMerchant(merchantName) {
getMerchant() {
return new Promise(resolve => {
let _merchantList
this.api.boutique.getMerchant({ merchantName }).then(res => {
this.api.boutique.getMerchant().then(res => {
if (!res.code === '0') {
this.openMessage('获取门店列表失败')
return
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!