We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3007f67 commit 1b50c54Copy full SHA for 1b50c54
1 file changed
dashboard/src/views/alkaid/KnowledgeBase.vue
@@ -601,11 +601,11 @@ export default {
601
checkPlugin() {
602
axios.get('/api/plugin/get?name=astrbot_plugin_knowledge_base')
603
.then(response => {
604
- if (response.data.status !== 'ok') {
+ if (response.data.status !== 'ok' || response.data.data.length === 0) {
605
this.showSnackbar(this.tm('messages.pluginNotAvailable'), 'error');
606
return
607
}
608
- if (!response.data.data.activated) {
+ if (!response.data.data[0].activated) {
609
this.showSnackbar(this.tm('messages.pluginNotActivated'), 'error');
610
611
0 commit comments