Commit e3a58a52 authored by 邓晓峰's avatar 邓晓峰

feat: add components openapi

parent 0e855073
Pipeline #23621 skipped with stages
...@@ -12,4 +12,3 @@ npm-debug.log ...@@ -12,4 +12,3 @@ npm-debug.log
src/umi src/umi
.vscode .vscode
civbase civbase
src/components/OpenApi
import 'swagger-ui-react/swagger-ui.css';
import React from 'react';
import { Card } from 'antd';
import SwaggerUI from 'swagger-ui-react';
export default () => (
<Card>
<SwaggerUI url={`${window.location.origin}/civ-plugins_openapi.json`} />
</Card>
);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment