Browse Source

fix: change base url of swagger by nocodb url

pull/6157/head
lolgopher 1 year ago
parent
commit
e28a3fa73e
  1. 2
      packages/nc-gui/components/general/HelpAndSupport.vue
  2. 2
      packages/nc-gui/pages/[projectType]/[projectId]/index.vue

2
packages/nc-gui/components/general/HelpAndSupport.vue

@ -10,7 +10,7 @@ const { project } = storeToRefs(useProject())
const route = useRoute() const route = useRoute()
const openSwaggerLink = () => { const openSwaggerLink = () => {
openLink(`/api/v1/db/meta/projects/${route.params.projectId}/swagger`, appInfo.value.ncSiteUrl) openLink(`./api/v1/db/meta/projects/${route.params.projectId}/swagger`, appInfo.value.ncSiteUrl)
} }
</script> </script>

2
packages/nc-gui/pages/[projectType]/[projectId]/index.vue

@ -365,7 +365,7 @@ useEventListener(document, 'keydown', async (e: KeyboardEvent) => {
v-if="isUIAllowed('apiDocs') && !isMobileMode" v-if="isUIAllowed('apiDocs') && !isMobileMode"
v-e="['e:api-docs']" v-e="['e:api-docs']"
class="nc-project-menu-item group" class="nc-project-menu-item group"
@click.stop="openLink(`/api/v1/db/meta/projects/${route.params.projectId}/swagger`, appInfo.ncSiteUrl)" @click.stop="openLink(`./api/v1/db/meta/projects/${route.params.projectId}/swagger`, appInfo.ncSiteUrl)"
> >
<component :is="iconMap.json" class="group-hover:text-accent" /> <component :is="iconMap.json" class="group-hover:text-accent" />
{{ $t('activity.account.swagger') }} {{ $t('activity.account.swagger') }}

Loading…
Cancel
Save