fix(工作台): 修复工作台应用内部模版报错问题

This commit is contained in:
wangjiahao 2024-05-08 11:28:35 +08:00
parent 7423aba3fa
commit 8c3c76d9a0
2 changed files with 4 additions and 2 deletions

View File

@ -422,7 +422,8 @@ const apply = template => {
const templateTemplate = {
newFrom: state.dvCreateForm.newFrom,
templateUrl: state.dvCreateForm.templateUrl,
resourceName: state.dvCreateForm.resourceName
resourceName: state.dvCreateForm.resourceName,
templateId: state.dvCreateForm.templateId
}
state.curApplyTemplate.recentUseTime = Date.now()
state.curApplyTemplate.categoryNames.push('最近使用')

View File

@ -227,7 +227,8 @@ const apply = () => {
const templateTemplate = {
newFrom: state.dvCreateForm.newFrom,
templateUrl: state.dvCreateForm.templateUrl,
resourceName: state.dvCreateForm.resourceName
resourceName: state.dvCreateForm.resourceName,
templateId: state.dvCreateForm.templateId
}
const baseUrl =
(['dataV', 'SCREEN'].includes(state.dvCreateForm.nodeType)