diff --git a/sheep/store/app.js b/sheep/store/app.js index b1a826c0..f05e9ba7 100644 --- a/sheep/store/app.js +++ b/sheep/store/app.js @@ -182,11 +182,10 @@ const adaptTenant = async () => { /** 初始化装修模版 */ const adaptTemplate = async (appTemplate, templateId) => { - let type = $platform.uniPlatform; const { data: diyTemplate } = templateId ? // 查询指定模板,一般是预览时使用 await DiyApi.getDiyTemplate(templateId) - : await DiyApi.getUsedDiyTemplate(type); + : await DiyApi.getUsedDiyTemplate($platform.uniPlatform); // 模板不存在 if (!diyTemplate) { $router.error('TemplateError');