【缺陷修复】修复客服对话框中,不管先点表情还是+号~弹起后,表情和+切换,样式偏移了找不到内容的问题。
This commit is contained in:
+12
-4
@@ -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) {
|
||||
|
||||
+2
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user