1
0
mirror of https://github.com/sahadev/vue-component-creater-ui.git synced 2025-12-19 17:16:06 +08:00

完成对LCG逻辑初始化的支持

This commit is contained in:
shangbin
2022-01-17 17:35:30 +08:00
parent 722a375108
commit 0f97f9c76f
11 changed files with 23 additions and 14 deletions

View File

@@ -34,7 +34,7 @@ export function createNewCodeGenerator() {
const kav = methodItem.split(":");
const key = kav[0];
// 这里获取的是原始data数据
if (window.methodSourceMap[key]) {
if (window.methodSourceMap && window.methodSourceMap[key]) {
return `${key}: ${window.methodSourceMap[key]}`;
} else {
return methodItem;