diff --git a/aiChat/components/historyList.vue b/aiChat/components/historyList.vue
index ea9d3d2..b5baa79 100644
--- a/aiChat/components/historyList.vue
+++ b/aiChat/components/historyList.vue
@@ -12,6 +12,37 @@
}"
class="history-container"
>
+
+
+ 今日
+
+
+
+
+
+ {{ item.title }}
+
+
+
+
+
+
+
30天内
@@ -23,7 +54,7 @@
@click="deleteRecords(2)"
/>
-
+
+
+
+
@@ -47,7 +85,7 @@
@click="deleteRecords(3)"
/>
-
+
+
+
+
@@ -86,6 +131,7 @@ export default {
return {
webUrl: this.$VUE_APP_RESOURCES_URL,
showLayer: false,
+ todayList: [],
list: [],
moreList: []
}
@@ -99,8 +145,9 @@ export default {
getChatList().then(res => {
const { success, data } = res
if (success) {
- this.list = data['30天内']
- this.moreList = data['超过30天']
+ this.todayList = data['今天'] || []
+ this.list = data['30天内'] || []
+ this.moreList = data['超过30天'] || []
}
})
},
@@ -203,6 +250,14 @@ export default {
}
}
}
+ .no-data {
+ .img {
+ display: block;
+ width: 300rpx;
+ height: 300rpx;
+ margin: 40rpx auto 0 auto;
+ }
+ }
}
}
&.show {
diff --git a/aiChat/views/index.vue b/aiChat/views/index.vue
index 6b8246b..1e792ac 100644
--- a/aiChat/views/index.vue
+++ b/aiChat/views/index.vue
@@ -107,7 +107,7 @@
space="nbsp"
/>
-
+
{
+ const resData = res.data || {};
// AI对话某个请求返回为空需要处理这种情况
if (['get', 'GET'].includes(options.method) && _params.params.isNoNeedPublicErrorNotification === 1) {
console.log('----')
- return Promise.resolve({})
+ if (resData.status === 500) {
+ return Promise.reject({msg: resData.msg, res, data});
+ } else {
+ return Promise.resolve({})
+ }
}
- const resData = res.data || {};
if (res.statusCode !== 200) {
return Promise.reject({msg: "请求失败", res, resData});
}