| | |
| | | <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_lcon pdg" v-html="item.content"></view> --> |
| | |
| | | |
| | | <view class="body_l" v-if="loading" 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 border_radius_l" style="display: flex;overflow-x: hidden;"> |
| | |
| | | typeingText: "", |
| | | typeingId: "", |
| | | now_model: {}, |
| | | setting_data:'null' |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapState(['config', 'num', 'userInfo']) |
| | | }, |
| | | onLoad(op) { |
| | | console.log(op,'op') |
| | | this.setting_data = setting |
| | | if (op.model) { |
| | | this.now_model = JSON.parse(op.model) |
| | | } else { |