From 3f93841e7880eb1f8f756a0e4dff2346aafad4cd Mon Sep 17 00:00:00 2001 From: wa1k3r Date: Sun, 27 Sep 2020 17:06:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=9B=B4=E6=8D=A2=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E6=9F=A5=E8=AF=A2=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/store/index.js b/src/store/index.js index 6c64bc1d..cfb6c153 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -71,7 +71,11 @@ export default { // platform(PLATFORM_TYPE.TEMPLATE_CONSOLE, CompanyId, undefined, false, '模版控制台'), ); } else { // 企业生成自己的企业平台权限 - const { Data = {} } = await fetchApi('company/queryCompanyById', { id: CompanyId }); + const companyInfoRes = await fetchApi('company/queryFrontDeskCompanyById', { id: CompanyId }); + if(companyInfoRes.Code !== 0) { + return companyInfoRes; + } + const { Data = {} } = companyInfoRes; const { company: { LogoUrl, CompanyName } } = Data; platformList.push(platform(PLATFORM_TYPE.COMPANY, CompanyId, LogoUrl, isCompanyAdmin, CompanyName)); }