修改在线加密聊天无法进入,视频文件大小显示错误问题

This commit is contained in:
junleea 2024-08-19 18:16:10 +08:00
parent 0741f83a0f
commit ea4a1b7773
4 changed files with 15 additions and 3 deletions

View File

@ -2,6 +2,7 @@ import axios from "axios";
import router from "@/router/index.js"; import router from "@/router/index.js";
const baseURL = "https://gep.ljsea.xyz/"; const baseURL = "https://gep.ljsea.xyz/";
//const baseURL= "http://localhost:8083"; //const baseURL= "http://localhost:8083";
//const baseURL="https://pm.ljsea.top";
const request = axios.create({ const request = axios.create({
baseURL: baseURL, baseURL: baseURL,
}); });

View File

@ -363,8 +363,12 @@ export default {
console.log("msg_:", data.data); console.log("msg_:", data.data);
let msg_data=JSON.parse(data.data) let msg_data=JSON.parse(data.data)
_this.MsgList.push(msg_data); _this.MsgList.push(msg_data);
if(_this.cur_user_id != msg_data.FromUserID){ if(_this.cur_user_id != msg_data.FromUserID || _this.cur_group_id != msg_data.GroupID){
_this.hasUnreadMsg[msg_data.FromUserID] = true; if(msg_data.GroupID===0){
_this.hasUnreadMsg[msg_data.FromUserID] = true;
}else{
_this.hasUnreadMsg["g_"+msg_data.GroupID] = true;
}
}else{ }else{
_this.scrollToBottom(); _this.scrollToBottom();
} }

View File

@ -180,6 +180,13 @@ export default {
handleCurrentChange() { handleCurrentChange() {
alert("页码发生变化" + val); alert("页码发生变化" + val);
}, },
startChat(index){
localStorage.setItem("to_user_id", this.tableData[index].ID);
localStorage.setItem("to_user_name", this.tableData[index].Name);
router.push("/im");
},
async displayMyInfo() { async displayMyInfo() {
let result = {}; let result = {};

View File

@ -47,7 +47,7 @@ export default {
for (let i = 0; i < len; i++) { for (let i = 0; i < len; i++) {
//this.file_sum_size += parseFloat(data[i].file_size); //this.file_sum_size += parseFloat(data[i].file_size);
data[i].file_size = parseFloat(data[i].file_size / 1024 / 1024).toFixed( data[i].FileSize = parseFloat(data[i].FileSize/ 1024 / 1024).toFixed(
2 2
); );
} }