web-component-gallery 2.2.0 → 2.2.1

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.
@@ -13,7 +13,10 @@ async function fetchAndParseLessFile(fileName, isParseVariables) {
13
13
  // 浏览器环境:使用当前页面的origin
14
14
  if (typeof window !== 'undefined' && window.location && window.location.origin && process.env.NODE_ENV !== 'development') origin = window.location.origin
15
15
 
16
- const response = await fetch(`${origin}/base-subject/themes/${fileName}.less`)
16
+ const response = await fetch(`${origin}/base-subject/themes/${fileName}.less`, {
17
+ method: 'GET',
18
+ mode: 'cors'
19
+ })
17
20
 
18
21
  if (!response.ok) throw new Error(`${fileName}文件请求失败!`)
19
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-component-gallery",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "基础vue、antdvue、less实现的私有组件库",
5
5
  "main": "dist/index.umd.js",
6
6
  "files": [