fix swagger ui error & package

This commit is contained in:
Warunee Tamkoo 2025-08-08 15:22:55 +07:00
parent 0c256b6cf6
commit a5f27c342b
3 changed files with 10 additions and 7438 deletions

View file

@ -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();