From 8e372fa7da77a0430899ec5068e14fa572cd8735 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 19 Aug 2025 23:00:50 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E3=80=90system=20=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E7=AE=A1=E7=90=86=E3=80=91=E7=A7=9F=E6=88=B7=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=97=B6=EF=BC=8C=E6=94=AF=E6=8C=81=E5=A1=AB=E5=86=99?= =?UTF-8?q?=E5=A4=9A=E4=B8=AA=E5=9F=9F=E5=90=8D=20websites?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/mall/promotion/diy/template/modules/decorate.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web-ele/src/views/mall/promotion/diy/template/modules/decorate.vue b/apps/web-ele/src/views/mall/promotion/diy/template/modules/decorate.vue index 7efb0ab86..753c037cc 100644 --- a/apps/web-ele/src/views/mall/promotion/diy/template/modules/decorate.vue +++ b/apps/web-ele/src/views/mall/promotion/diy/template/modules/decorate.vue @@ -16,6 +16,7 @@ import * as DiyPageApi from '#/api/mall/promotion/diy/page'; import * as DiyTemplateApi from '#/api/mall/promotion/diy/template'; import DiyEditor from '#/components/diy-editor/index.vue'; import { PAGE_LIBS } from '#/components/diy-editor/util'; +import {useAccessStore} from '@vben/stores'; /** 装修模板表单 */ defineOptions({ name: 'DiyTemplateDecorate' }); @@ -51,7 +52,8 @@ 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}`; + const accessStore = useAccessStore(); + previewUrl.value = `${domain}?templateId=${formData.value.id}&${accessStore.tenantId}`; } finally { formLoading.value = false; }