优化数据统计
This commit is contained in:
@@ -702,9 +702,13 @@ export default {
|
||||
*/
|
||||
async geiShopList() {
|
||||
try {
|
||||
let res = await ShopApi.getBranchList()
|
||||
this.branchList = res;
|
||||
this.shopId = res[0].shopId
|
||||
if (this.shopInfo.isHeadShop) {
|
||||
let res = await ShopApi.getBranchList()
|
||||
this.branchList = res;
|
||||
this.shopId = res[0].shopId
|
||||
} else {
|
||||
this.shopId = this.shopInfo.id
|
||||
}
|
||||
} catch (error) {
|
||||
console.log('获取分店列表===', error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user