Commit a46132ab authored by nick zheng's avatar nick zheng

Merge branch 'beta' of https://gitlab.gsstcloud.com/poc/poc-fe into beta-r

parents e660b9f5 e43f3133
<script setup lang="ts">
import { onMounted, reactive, ref } from 'vue'
import { onMounted, reactive, ref, watch } from 'vue'
import { useI18n } from 'vue-i18n'
import { useLayoutConfig } from '@/composables/useLayoutConfig'
......@@ -19,6 +19,18 @@ const modalOptions = reactive({
let _modalStatusResolve = (_value?: any) => {}
let _modalStatusReject = (_reason?: any) => {}
watch(
() => isShowModal.value,
(newVal) => {
if (!newVal) {
modalOptions.content = ''
modalOptions.title = t('common_module.tip')
modalOptions.cancelText = t('common_module.cancel_btn_text')
modalOptions.confirmText = t('common_module.confirm_btn_text')
}
},
)
onMounted(() => {
window.$message.ctWarning = handleShowModal
})
......
......@@ -162,7 +162,7 @@ common_module:
generate_warning_message: 'The above content is generated by AI and is for reference only'
clear_message_popover_message: 'Clear history session'
clear_message_dialog_title: 'Are you sure you want to clear the conversation?'
clear_message_dialog_content: 'Clearing the session will clear all the history of the session in the debug area. Are you sure to clear the session?'
clear_message_dialog_content: 'Clearing the conversation will clear all the current conversation content. Are you sure to clear the conversation?'
cancel_associate_file_tip: 'No longer answer around this file'
upload_file_limit: 'Only a single file can be uploaded in PDF, DOC, DOCX, MD, TXT format, up to 10MB'
overwrite_file_tip: 'The newly uploaded file overwrites the original file, whether to continue uploading'
......
......@@ -162,7 +162,7 @@ common_module:
generate_warning_message: '以上内容均由AI生成,仅供参考'
clear_message_popover_message: '清空历史会话'
clear_message_dialog_title: '确认要清空对话吗?'
clear_message_dialog_content: '清空对话将清空调试区域所有历史对话内容,确定清空对话吗?'
clear_message_dialog_content: '清空对话将清空当前所有对话内容,确定清空对话吗?'
cancel_associate_file_tip: '不再围绕这个文件回答'
upload_file_limit: '仅支持上传单个文件,支持PDF、DOC、DOCX、MD、TXT格式,最大10MB'
overwrite_file_tip: '新上传的文件会覆盖原有文件,是否继续上传'
......
......@@ -161,7 +161,7 @@ common_module:
generate_warning_message: '以上內容均由AI生成,僅供參考'
clear_message_popover_message: '清空歷史會話'
clear_message_dialog_title: '確認要清空對話嗎?'
clear_message_dialog_content: '清空對話將清空調試區域所有歷史對話內容,確定清空對話嗎?'
clear_message_dialog_content: '清空對話將清空當前所有對話內容,確定清空對話嗎?'
cancel_associate_file_tip: '不再圍繞這個文件回答'
upload_file_limit: '僅支持上傳單個文件,支持PDF、DOC、DOCX、MD、TXT格式,最大10MB'
overwrite_file_tip: '新上傳的文件會覆蓋原有文件,是否繼續上傳'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment