ol-base-components 2.7.3 → 2.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/bin/initTemplate.js +4 -3
package/package.json
CHANGED
package/src/bin/initTemplate.js
CHANGED
|
@@ -46,15 +46,16 @@ const vue2Template = (moduleName, config = {}) => {
|
|
|
46
46
|
if (config.editUrl) baseUrlKey = editUrlKey = generateKeyName(config.editUrl, "put");
|
|
47
47
|
if (config.addUrl) baseUrlKey = addUrlKey = generateKeyName(config.addUrl, "post");
|
|
48
48
|
if (config.deleteUrl) deleteUrlKey = generateKeyName(config.deleteUrl, "delete");
|
|
49
|
-
|
|
49
|
+
if (baseUrlKey) baseUrlKey = `${baseUrlKey}CompleteUrl`; //补充后缀
|
|
50
50
|
// 生成导入语句
|
|
51
51
|
const generateImports = () => {
|
|
52
52
|
const imports = [];
|
|
53
53
|
if (config.pageUrl) imports.push(`${pageUrlKey}`);
|
|
54
|
-
if (config.
|
|
54
|
+
if (config.baseUrl) imports.push(`${baseUrlKey}`);
|
|
55
|
+
if (config.addUrl) imports.push(`${addUrlKey}`);
|
|
55
56
|
if (config.editUrl) imports.push(`${editUrlKey}`);
|
|
56
|
-
if (config.deleteUrl) imports.push(`${deleteUrlKey}`);
|
|
57
57
|
if (config.detailUrl) imports.push(`${detailUrlKey}`);
|
|
58
|
+
if (config.deleteUrl) imports.push(`${deleteUrlKey}`);
|
|
58
59
|
return imports.join(", ");
|
|
59
60
|
};
|
|
60
61
|
|