From 03cf7c151d1873ca8c6d6e49677971988be8236f Mon Sep 17 00:00:00 2001
From: cshenfu <men883234@gmail.com>
Date: 星期五, 12 五月 2023 11:07:03 +0800
Subject: [PATCH] change icon
---
pages/index/chat.vue | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/pages/index/chat.vue b/pages/index/chat.vue
index 177a004..e57bc0f 100755
--- a/pages/index/chat.vue
+++ b/pages/index/chat.vue
@@ -12,7 +12,7 @@
<view v-for="(item,index) in arr" :key="index" :id="'message' + item.message_id">
<view class="body_l" v-if="item.role == 'assistant'">
<view class="body_lpic a">
- <image :src="now_model.icon" mode=""></image>
+ <image :src="`${setting_data.base_url+now_model.icon}`" mode=""></image>
</view>
<view class="body_box">
<view class="body_jt"></view>
@@ -43,7 +43,7 @@
</view>
<view class="body_l" v-if="loading" style="margin-left: 30rpx;" id="loading">
<view class="body_lpic a">
- <image :src="now_model.icon" mode=""></image>
+ <image :src="`${setting_data.base_url+now_model.icon}`" mode=""></image>
</view>
<view class="body_box ">
<view class="body_lcon pdg" style="display: flex;overflow-x: hidden;">
@@ -131,13 +131,15 @@
showLeftList: false,
chatList: [],
showTab: false,
- tabIndex: 0
+ tabIndex: 0,
+ setting_data:'null'
}
},
computed: {
...mapState(['config', 'num', 'userInfo','tabbar'])
},
onLoad(op) {
+ this.setting_data = setting
this.getTabIndex()
if (op.model) {
this.now_model = JSON.parse(op.model)
--
Gitblit v1.9.1