ol-base-components 1.2.1 → 1.2.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ol-base-components",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "private": false,
5
5
  "main": "src/package/index.js",
6
6
  "scripts": {
@@ -42,8 +42,8 @@ const install = function (
42
42
  ) {
43
43
  if (options && options.swaggerUrl) {
44
44
  // "http://220.179.249.140:20019/swagger/v1/swagger.json"
45
- const swaggerInstance = new SwaggerClient(options.swaggerUrl);
46
- Vue.prototype.$swagger = swaggerInstance;
45
+ const client = new SwaggerClient(options.swaggerUrl);
46
+ Vue.prototype.$swagger = { specification: client.spec };
47
47
  }
48
48
  // 遍历所有组件
49
49
  components.map((item) => {