cshenfu
2023-05-12 03cf7c151d1873ca8c6d6e49677971988be8236f
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)