Commit ea716a84 authored by rockyl's avatar rockyl

删除tpl

parent 964231cd
...@@ -225,7 +225,9 @@ function fillTpl(data, params) { ...@@ -225,7 +225,9 @@ function fillTpl(data, params) {
const {options} = data; const {options} = data;
fillTemplate(options.newTpl, options, params); fillTemplate(options.newTpl, options, params);
return options.newTpl; const newTpl = options.newTpl;
delete options.newTpl;
return newTpl;
} }
async function packData(data, {debug, getProcesses, getScripts, getCustoms}) { async function packData(data, {debug, getProcesses, getScripts, getCustoms}) {
......
This diff is collapsed.
...@@ -231,7 +231,9 @@ function fillTpl(data, params) { ...@@ -231,7 +231,9 @@ function fillTpl(data, params) {
const {options} = data; const {options} = data;
fillTemplate(options.newTpl, options, params); fillTemplate(options.newTpl, options, params);
return options.newTpl; const newTpl = options.newTpl;
delete options.newTpl;
return newTpl;
} }
async function packData(data, {debug, getProcesses, getScripts, getCustoms}) { async function packData(data, {debug, getProcesses, getScripts, getCustoms}) {
......
This diff is collapsed.
...@@ -231,7 +231,9 @@ ${scripts} ...@@ -231,7 +231,9 @@ ${scripts}
const {options} = data; const {options} = data;
fillTemplate(options.newTpl, options, params); fillTemplate(options.newTpl, options, params);
return options.newTpl; const newTpl = options.newTpl;
delete options.newTpl;
return newTpl;
} }
async function packData(data, {debug, getProcesses, getScripts, getCustoms}) { async function packData(data, {debug, getProcesses, getScripts, getCustoms}) {
......
This diff is collapsed.
...@@ -28,7 +28,9 @@ export function fillTpl(data, params) { ...@@ -28,7 +28,9 @@ export function fillTpl(data, params) {
const {options} = data; const {options} = data;
fillTemplate(options.newTpl, options, params); fillTemplate(options.newTpl, options, params);
return options.newTpl; const newTpl = options.newTpl;
delete options.newTpl;
return newTpl;
} }
async function packData(data, {debug, getProcesses, getScripts, getCustoms}) { async function packData(data, {debug, getProcesses, getScripts, getCustoms}) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment