feat:【system 系统管理】租户管理时,支持填写多个域名 websites

pull/203/head
YunaiV 2025-08-19 23:00:50 +08:00
parent 3b2b0d5438
commit 8e372fa7da
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}