feat: add copy code btn in chat page, fixed bug for code wrap in model of ChatGLM and XunFei

This commit is contained in:
RockYang
2023-11-22 17:00:43 +08:00
parent 5fee3a9288
commit 251fe626f2
10 changed files with 129 additions and 60 deletions

View File

@@ -33,10 +33,9 @@
<el-col :span="17">
<div class="product-box">
<div class="info">
<div class="info" v-if="orderPayInfoText !== ''">
<el-alert type="info" show-icon :closable="false" effect="dark">
<strong>说明:</strong> 成为本站会员后每月有500次对话额度50 AI 绘画额度限制下月1号解除若在期间超过次数后可单独购买点卡
当月充值的点卡有效期可以延期到下个月底
<strong>说明:</strong> {{ orderPayInfoText }}
</el-alert>
</div>
@@ -176,6 +175,7 @@ const activeOrderNo = ref("")
const countDown = ref(null)
const orderTimeout = ref(1800)
const loading = ref(true)
const orderPayInfoText = ref("")
onMounted(() => {
@@ -194,6 +194,7 @@ onMounted(() => {
httpGet("/api/admin/config/get?key=system").then(res => {
rewardImg.value = res.data['reward_img']
enableReward.value = res.data['enabled_reward']
orderPayInfoText.value = res.data['order_pay_info_text']
if (res.data['order_pay_timeout'] > 0) {
orderTimeout.value = res.data['order_pay_timeout']
}