优化细节表现
This commit is contained in:
1 parent
dd56403d93
commit
0389c8b7fe
3 files changed
+6
-2
No files matched your search
@@ -95,6 +95,7 @@ async function getFileInfo(code) {
|
|||||||
|
|
||||||
async function downloadFile(code) {
|
async function downloadFile(code) {
|
||||||
if (fileInfoCache.value[code].status === 'waittingDownload') {
|
if (fileInfoCache.value[code].status === 'waittingDownload') {
|
||||||
|
fileInfoCache.value[code].status = `downloading`;
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
let id = code.substring(0, 8);
|
let id = code.substring(0, 8);
|
||||||
let key = code.substring(8);
|
let key = code.substring(8);
|
||||||
@@ -227,7 +228,7 @@ const fileInfoCache = ref({})
|
|||||||
const fileStatus2String = ref({
|
const fileStatus2String = ref({
|
||||||
waittingDownload: '点击下载',
|
waittingDownload: '点击下载',
|
||||||
downloading: '下载中',
|
downloading: '下载中',
|
||||||
finish: '点击获取',
|
finish: '下载完成',
|
||||||
Unknow: '获取文件信息中',
|
Unknow: '获取文件信息中',
|
||||||
error: '出错'
|
error: '出错'
|
||||||
})
|
})
|
||||||
|
|||||||
+1
-1
@@ -283,7 +283,7 @@ function joinGroup_Verify(gID) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function sendMsg(gID, msg) {
|
function sendMsg(gID, msg) {
|
||||||
if(msg === '' || activeGID.value === null)return
|
if(msg === '' || msg === null || activeGID.value === null)return
|
||||||
let key = gID2key[gID].key
|
let key = gID2key[gID].key
|
||||||
msg = encryptString(key, msg, setting)
|
msg = encryptString(key, msg, setting)
|
||||||
socket.send(JSON.stringify({ type: 'message',type1:'text', msg, gID }))
|
socket.send(JSON.stringify({ type: 'message',type1:'text', msg, gID }))
|
||||||
|
|||||||
@@ -18,4 +18,7 @@ export default defineConfig({
|
|||||||
port:'17058',
|
port:'17058',
|
||||||
open:true,
|
open:true,
|
||||||
},
|
},
|
||||||
|
esbuild: {
|
||||||
|
drop: ['console', 'debugger'],
|
||||||
|
},
|
||||||
})
|
})
|
||||||
Reference in new issue
Block a user