Skip to content

Commit

Permalink
fix: remove debug console.log
Browse files Browse the repository at this point in the history
Signed-off-by: seven <[email protected]>
  • Loading branch information
Blankll committed May 13, 2024
1 parent 6b08292 commit 5cd05e0
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/layout/components/chatbot-box.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,15 @@
<n-alert :type="chatBotNotification.level">
{{ chatBotNotification.message }}
</n-alert>
<br/>
<n-button v-if="chatBotNotification.code === ErrorCodes.MISSING_GPT_CONFIG" @click="configGpt" strong secondary type="primary">{{ $t('setting.ai.configGpt') }}</n-button>
<br />
<n-button
v-if="chatBotNotification.code === ErrorCodes.MISSING_GPT_CONFIG"
@click="configGpt"
strong
secondary
type="primary"
>{{ $t('setting.ai.configGpt') }}</n-button
>
</div>
</n-scrollbar>
</div>
Expand Down Expand Up @@ -92,22 +99,19 @@ const submitMsg = () => {
};
const configGpt = () => {
router.push({ path: '/setting', replace: true })
}
router.push({ path: '/setting', replace: true });
};
fetchChats()
.then(() => {
console.log('fetch chats then');
scrollbarRef.value.scrollTo({ top: 999999 });
})
.catch(err => {
chatBotNotification.value = {
enabled: true,
level: 'error',
message: err.details,
code: err.status
code: err.status,
};
});
</script>
Expand Down

0 comments on commit 5cd05e0

Please sign in to comment.