对话记录
This commit is contained in:
@@ -44,6 +44,7 @@
|
|||||||
"core-js": "^3.8.3",
|
"core-js": "^3.8.3",
|
||||||
"dayjs": "^1.9.5",
|
"dayjs": "^1.9.5",
|
||||||
"dvcp-wui": "^1.0.1",
|
"dvcp-wui": "^1.0.1",
|
||||||
|
"echarts": "^5.5.0",
|
||||||
"flyio": "^0.6.2",
|
"flyio": "^0.6.2",
|
||||||
"query-string": "^7.1.1",
|
"query-string": "^7.1.1",
|
||||||
"regenerator-runtime": "^0.12.1",
|
"regenerator-runtime": "^0.12.1",
|
||||||
|
|||||||
@@ -103,9 +103,7 @@ export default {
|
|||||||
...mapState(['user', 'token']),
|
...mapState(['user', 'token']),
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
if(this.token) {
|
this.getHistoryList()
|
||||||
this.getHistoryList()
|
|
||||||
}
|
|
||||||
recorderManager.onStop((res)=> {
|
recorderManager.onStop((res)=> {
|
||||||
this.upLoad(res.tempFilePath)
|
this.upLoad(res.tempFilePath)
|
||||||
});
|
});
|
||||||
@@ -187,6 +185,9 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
sendMsg() {
|
sendMsg() {
|
||||||
|
if(!this.token) {
|
||||||
|
return this.$u.toast("请在'个人中心'登录")
|
||||||
|
}
|
||||||
this.$loading()
|
this.$loading()
|
||||||
this.$instance.post("/app/appaicopilotinfo/add", {content: this.content, appType: 0, areaId: this.areaId}).then(res => {
|
this.$instance.post("/app/appaicopilotinfo/add", {content: this.content, appType: 0, areaId: this.areaId}).then(res => {
|
||||||
if(res.code == 0) {
|
if(res.code == 0) {
|
||||||
@@ -204,6 +205,9 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
sendVoice() {
|
sendVoice() {
|
||||||
|
if(!this.token) {
|
||||||
|
return this.$u.toast("请在'个人中心'登录")
|
||||||
|
}
|
||||||
this.$loading()
|
this.$loading()
|
||||||
this.$instance.post("/app/appaicopilotinfo/add", {sdkFileUrl: this.voiceUrl, fileId: this.voiceId, appType: 0}).then(res => {
|
this.$instance.post("/app/appaicopilotinfo/add", {sdkFileUrl: this.voiceUrl, fileId: this.voiceId, appType: 0}).then(res => {
|
||||||
if(res.code == 0) {
|
if(res.code == 0) {
|
||||||
@@ -225,6 +229,9 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getHistoryList() {
|
getHistoryList() {
|
||||||
|
if(!this.token) {
|
||||||
|
return this.$u.toast("请在'个人中心'登录")
|
||||||
|
}
|
||||||
this.$loading()
|
this.$loading()
|
||||||
this.$instance.post(`/app/appaicopilotinfo/list?current=${this.current}&size=10`).then(res => {
|
this.$instance.post(`/app/appaicopilotinfo/list?current=${this.current}&size=10`).then(res => {
|
||||||
if(res.code == 0 && res.data.records.length) {
|
if(res.code == 0 && res.data.records.length) {
|
||||||
|
|||||||
Reference in New Issue
Block a user