fix(nc-gui): pass empty object instead of name in JSONUrlTemplateAdapter

This commit is contained in:
Wing-Kam Wong
2022-10-21 18:41:35 +08:00
parent ade79ecd50
commit 72e6ef626d

View File

@@ -7,8 +7,7 @@ export default class JSONUrlTemplateAdapter extends JSONTemplateAdapter {
constructor(url: string, parserConfig: Record<string, any>) {
const { $api } = useNuxtApp()
const name = url.split('/').pop()
super(name, parserConfig)
super({}, parserConfig)
this.url = url
this.$api = $api
}