ol-base-components 1.2.2 → 1.2.3

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.2",
3
+ "version": "1.2.3",
4
4
  "private": false,
5
5
  "main": "src/package/index.js",
6
6
  "scripts": {
@@ -24,10 +24,8 @@ ${cyan}感谢使用我们的组件库,期待你的精彩应用!${reset}
24
24
  `);
25
25
  };
26
26
 
27
- export const SwaggerHandler = async (Vue) => {
28
- const client = await new SwaggerClient(
29
- "http://220.179.249.140:20019/swagger/v1/swagger.json"
30
- );
27
+ export const SwaggerHandler = async (Vue, swaggerUrl) => {
28
+ const client = await new SwaggerClient(swaggerUrl);
31
29
  console.log("client", client);
32
30
  Vue.prototype.$swagger = { specification: client.spec };
33
31
  };