Commit c2d70e6f by 匡雅琴

优化代码

1 parent dcfb3847
......@@ -112,12 +112,11 @@ export default {
methods: {
async init() {
this.tabObject = this.$route.query
const { year } = this.$route.query
this.defaultYear = year
const { merchantid, purchaseType } = this.$route.query
const { merchantid, purchaseType, year } = this.$route.query
const _merchantList = await this.getAllRanking(purchaseType)
this.merchantList = _merchantList
this.purchaseType = purchaseType
this.defaultYear = year
this.getMerchantGoodsRatio(merchantid)
this.getMerchantPurchase(merchantid)
this.getMerchantPurchaseTrend(merchantid)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!