优化细节表现

This commit is contained in:
539943419 committed 2024-04-03 12:45:13 +08:00
1 parent dd56403d93
commit 0389c8b7fe
3 files changed
+6 -2

No files matched your search

+2 -1
View File
@@ -95,6 +95,7 @@ async function getFileInfo(code) {
async function downloadFile(code) {
if (fileInfoCache.value[code].status === 'waittingDownload') {
fileInfoCache.value[code].status = `downloading`;
return new Promise((resolve, reject) => {
let id = code.substring(0, 8);
let key = code.substring(8);
@@ -227,7 +228,7 @@ const fileInfoCache = ref({})
const fileStatus2String = ref({
waittingDownload: '点击下载',
downloading: '下载中',
finish: '点击获取',
finish: '下载完成',
Unknow: '获取文件信息中',
error: '出错'
})
+1 -1
View File
@@ -283,7 +283,7 @@ function joinGroup_Verify(gID) {
}
function sendMsg(gID, msg) {
if(msg === '' || activeGID.value === null)return
if(msg === '' || msg === null || activeGID.value === null)return
let key = gID2key[gID].key
msg = encryptString(key, msg, setting)
socket.send(JSON.stringify({ type: 'message',type1:'text', msg, gID }))