!145 修复了一些问题

Merge pull request !145 from puhui999/dev
pull/146/MERGE
芋道源码 2025-04-26 10:57:26 +00:00 committed by Gitee
commit 42f10e1b8f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 17 additions and 9 deletions

View File

@ -104,13 +104,21 @@
return;
}
if (!chat.toolsMode || chat.toolsMode === mode) {
chat.showTools = !chat.showTools;
//
if (chat.showTools && chat.toolsMode === mode){
handleToolsClose();
return;
}
chat.toolsMode = mode;
if (!chat.showTools) {
//
if (chat.showTools && chat.toolsMode !== mode) {
chat.showTools = false;
chat.toolsMode = '';
}
//
setTimeout(()=>{
chat.toolsMode = mode;
chat.showTools = true;
}, 200)
}
function onShowSelect(mode) {

View File

@ -96,8 +96,8 @@ const groupon = async (poster) => {
text: poster.shareInfo.link,
css: {
position: 'fixed',
left: width * 0.5,
top: width * 1.3,
left: width * 0.75,
top: width * 1.4,
width: width * 0.2,
height: width * 0.2,
},
@ -110,7 +110,7 @@ const groupon = async (poster) => {
css: {
position: 'fixed',
left: width * 0.75,
top: width * 1.3,
top: width * 1.4,
width: width * 0.2,
height: width * 0.2,
},

View File

@ -147,7 +147,7 @@ export function jsonParse(str) {
try {
return JSON.parse(str);
} catch (e) {
console.error(`str[${str}] 不是一个 JSON 字符串`);
return '';
console.warn(`str[${str}] 不是一个 JSON 字符串`);
return str;
}
}