cshenfu
2023-05-15 1362ae2888ca3e13e0d877938543690ac68c1db4
pages/index/index.vue
@@ -4,7 +4,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_lcon pdg" v-html="item.content"></view> -->
@@ -33,7 +33,7 @@
         
         <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;">
@@ -87,13 +87,14 @@
            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 {