| | |
| | | const msgData = {
|
| | | mine: null,
|
| | | getRole(type, msg) {
|
| | | if (type == "markDown") {
|
| | | return {
|
| | | msg: {
|
| | | date: this.getDate(),
|
| | | text: { text: msg },
|
| | | mine: false,
|
| | | name: "[GeoAgent]",
|
| | | img: this.getImgUrl("ai"),
|
| | | file: null,
|
| | | fileList: [],
|
| | | markDown: true
|
| | | }
|
| | | };
|
| | | }
|
| | | const imgurl = this.getImgUrl(type);
|
| | | var roleMsg = this.getTest(msg);
|
| | | this.mine = this.getMine(type);
|
| | |
| | | },
|
| | |
|
| | | getMsg(imgurl, msg) {
|
| | | // const fileContent = [];
|
| | | // const fileMile = null;
|
| | |
|
| | | // if (msg.text.indexOf("苏比克湾") > -1) {
|
| | | // fileContent = [
|
| | | // {
|
| | | // name: "已找到2份相关文档",
|
| | | // url: "testUrl"
|
| | | // },
|
| | | // {
|
| | | // name: "Markdown.md",
|
| | | // url: "http://192.168.11.66:12316/Markdown.md"
|
| | | // },
|
| | | // {
|
| | | // name: "Markdown.md",
|
| | | // url: "http://192.168.11.66:12316/Markdown1.md"
|
| | | // }
|
| | | // ];
|
| | | // fileMile = fileContent[0].url;
|
| | | // return {
|
| | | // date: this.getDate(),
|
| | | // text: msg,
|
| | | // mine: false,
|
| | | // name: this.mine ? "[GeoAgent]" : "[您]",
|
| | | // img: imgurl,
|
| | | // file: fileMile,
|
| | | // fileList: fileConten,
|
| | | // markDown: false
|
| | | // };
|
| | | // }
|
| | | return {
|
| | | date: this.getDate(),
|
| | | text: msg,
|
| | | mine: false,
|
| | | name: this.mine ? "[GeoAgent]" : "[您]",
|
| | | img: imgurl
|
| | | img: imgurl,
|
| | | markDown: false
|
| | | };
|
| | | },
|
| | | getDate() {
|