mirror of
https://github.com/Babibubebon/lodc2022-culture-art.git
synced 2024-09-22 17:04:21 +09:00
fix
This commit is contained in:
parent
76d7d41d3f
commit
bc8a93ce5e
1 changed files with 11 additions and 1 deletions
|
@ -15,7 +15,17 @@
|
|||
id: tabName
|
||||
});
|
||||
}
|
||||
tab.setQuery(query);
|
||||
try {
|
||||
tab.setQuery(query);
|
||||
} catch (error) {
|
||||
tab.close();
|
||||
tab = yasguiInstance.addTab(true, {
|
||||
...Yasgui.Tab.getDefaults(),
|
||||
requestConfig: endpoint ? {endpoint: endpoint} : yasguiInstance.config.requestConfig,
|
||||
name: tabName,
|
||||
id: tabName
|
||||
});
|
||||
}
|
||||
tab.yasqe.query();
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue