Refine chatdoc and base code interface (#2)

This commit is contained in:
AceDataCloud committed 2024-03-18 00:49:01 +08:00
1 parent 28da0263dc
commit 09ee60aa6e
21 files changed
+352 -168

No files matched your search

@@ -88,6 +88,7 @@ export default defineComponent({
ElMessage.success(this.$t('chatdoc.message.createDocumentSuccess'));
this.dialogVisible = false;
this.$store.dispatch('chatdoc/getDocuments', { repositoryId: this.$route.params.repositoryId });
this.$store.dispatch('chatdoc/getApplication');
})
.catch(() => {
ElMessage.error(this.$t('chatdoc.message.createDocumentError'));
+1 -3
View File
@@ -1,8 +1,7 @@
<template>
<div class="price-text">
<span v-if="price > 0" class="unfree"
>¥{{ price }} {{ unit ? ` / ${unit}` : '' }}{{ start ? $t('common.message.startPrice') : ''
}}{{ $t('common.message.startPrice') }}
>${{ price }} {{ unit ? ` / ${unit}` : '' }}{{ start ? $t('common.message.startPrice') : '' }}
</span>
<span v-else class="free">
{{ $t('common.message.free') }}
@@ -12,7 +11,6 @@
<script>
import { defineComponent } from 'vue';
export default defineComponent({
name: 'ApiPrice',
props: {