From c93c70a3cb65015281924a5c65dfd3d07b91ed87 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 19 Aug 2025 09:16:46 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E3=80=90mall=20=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E3=80=91=E5=BA=97=E9=93=BA=E9=A2=84=E8=A7=88=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20tenantId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mall/promotion/diy/template/decorate.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/mall/promotion/diy/template/decorate.vue b/src/views/mall/promotion/diy/template/decorate.vue index 85799e31a..6ebacdd34 100644 --- a/src/views/mall/promotion/diy/template/decorate.vue +++ b/src/views/mall/promotion/diy/template/decorate.vue @@ -34,6 +34,7 @@ import { useTagsViewStore } from '@/store/modules/tagsView' import { DiyComponentLibrary, PAGE_LIBS } from '@/components/DiyEditor/util' // 商城的 DIY 组件,在 DiyEditor 目录下 import { toNumber } from 'lodash-es' import { isEmpty } from '@/utils/is' +import { getTenantId } from '@/utils/auth' /** 装修模板表单 */ defineOptions({ name: 'DiyTemplateDecorate' }) @@ -69,7 +70,7 @@ const getPageDetail = async (id: any) => { formData.value = await DiyTemplateApi.getDiyTemplateProperty(id) // 拼接手机预览链接 const domain = import.meta.env.VITE_MALL_H5_DOMAIN - previewUrl.value = `${domain}/#/pages/index/index?templateId=${formData.value.id}` + previewUrl.value = `${domain}?templateId=${formData.value.id}&tenantId=${getTenantId()}` } finally { formLoading.value = false }