提交 22936755 作者: ZhangLingKun

功能:问题修复

上级 b5d85bc7
流水线 #8000 已通过 于阶段
in 5 分 27 秒
......@@ -56,6 +56,7 @@ service.interceptors.response.use(
const isServer = typeof window === 'undefined';
if (isServer) {
// 如果是服务端
console.log('出错了 --->', response.config, data);
return Promise.reject(data);
// eslint-disable-next-line no-alert
// window.confirm(data.message || '啊呀,出错了');
......
......@@ -32,7 +32,6 @@ export const getServerSideProps = wrapper.getServerSideProps(
const res = await ServiceAPI.getCompanyInspectionById({ id });
if (res && res.code === '200') {
serviceDetail = res.result;
// console.log('获取服务详情 --->', serviceDetail);
}
};
// 获取店铺详情
......@@ -53,11 +52,8 @@ export const getServerSideProps = wrapper.getServerSideProps(
};
// 依次获取接口数据
await (async () => {
await Promise.all([
getCompanyInspection(),
getCompanyInspection(),
getPriceUnitList(),
]);
await Promise.all([getCompanyInspection(), getPriceUnitList()]);
await getCompanyInfo();
})();
return { props: { serviceDetail, storeDetail } };
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论