<template>
  <i-frame :src="url" />
</template>
<script>
import iFrame from "@/components/iFrame/index"
export default {
  name: "Swagger",
  components: { iFrame },
  data() {
    return {
      // 添加配置参数来明确指定基础URL
      url: process.env.VUE_APP_BASE_API + "/swagger-ui/index.html?configUrl=" + 
           process.env.VUE_APP_BASE_API + "/v3/api-docs/swagger-config"
    }
  }
}
</script>
