1.2.0 • Published 4 years ago

vue-cli-plugin-swagger-to-types v1.2.0

Weekly downloads
108
License
MIT
Repository
github
Last release
4 years ago

vue-cli-plugin-swagger-to-types

自动从swagger生成inteface

// 1.安装插件
  vue add swagger-to-types

// 2.vue.config.js中设置配置
  pluginOptions: {
    toTypes: {
      host: "http://192.168.1.1/demo-web/v2/api-docs", // swagger地址
      TypesPath: "./types/api.d.ts" // 生成的interface
     }
  },

// 3.package.json中 添加生成types命令
  vue-cli-service getTypes
1.2.0

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago