| | |
| | | <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> |
| | |
| | | </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;"> |
| | |
| | | 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) |