Skip to content

Commit 9ae77b4

Browse files
committed
【fix】修改include
1 parent f59f3ae commit 9ae77b4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dist/ol/include-ol.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
var includes = (targetScript.getAttribute('include') || '').split(',');
5454
var excludes = (targetScript.getAttribute('exclude') || '').split(',');
5555
// 在线
56-
if (!inArray(excludes, 'ol') && !inArray(includes, 'ol-debug') && !inArray(includes, 'ol@4.6.5')) {
56+
if (!inArray(includes, 'ol-debug') && !inArray(includes, 'ol@4.6.5') && !inArray(excludes, 'ol')) {
5757
inputCSS(`${libsurl}/openlayers/6.14.1/ol.css`);
5858
inputScript(`${libsurl}/openlayers/6.14.1/ol.js`);
5959
}

dist/openlayers/include-openlayers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
var includes = (targetScript.getAttribute('include') || '').split(',');
5454
var excludes = (targetScript.getAttribute('exclude') || '').split(',');
5555
// 在线
56-
if (!inArray(excludes, 'ol') && !inArray(includes, 'ol-debug') && !inArray(includes, 'ol@4.6.5')) {
57-
inputCSS(`${libsurl}/openlayers/6.14.1/ol.css`);
56+
if (!inArray(includes, 'ol-debug') && !inArray(includes, 'ol@4.6.5') && !inArray(excludes, 'ol')) {
57+
inputCSS(`${libsurl}/openlayers/6.14.1/ol.css`);
5858
inputScript(`${libsurl}/openlayers/6.14.1/ol.js`);
5959
}
6060
if (inArray(includes, 'ol@4.6.5')) {

0 commit comments

Comments
 (0)