fix swagger ui error & package
This commit is contained in:
parent
0c256b6cf6
commit
a5f27c342b
3 changed files with 10 additions and 7438 deletions
|
|
@ -4,12 +4,18 @@
|
|||
|
||||
<script lang="ts" setup>
|
||||
import { onMounted, ref } from "vue";
|
||||
import SwaggerUI from "swagger-ui";
|
||||
import "swagger-ui/dist/swagger-ui.css";
|
||||
import SwaggerUI from "swagger-ui-dist/swagger-ui-es-bundle.js";
|
||||
import "swagger-ui-dist/swagger-ui.css";
|
||||
|
||||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
|
||||
// บอก TypeScript ว่า swagger-ui มี preset
|
||||
// (เพราะ type definition ใน swagger-ui-dist ไม่มีให้ครบ)
|
||||
interface SwaggerUIBundle {
|
||||
presets: any;
|
||||
[key: string]: any;
|
||||
}
|
||||
// URL ของ Swagger JSON API ของคุณตรงนี้
|
||||
// const swaggerUrl: string = "https://petstore.swagger.io/v2/swagger.json";
|
||||
const swaggerJson = ref();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue