企业信息补全页面开发
This commit is contained in:
@@ -153,7 +153,11 @@ const useChatGroupDBStore = defineStore("messageGroup", () => {
|
||||
};
|
||||
});
|
||||
}
|
||||
window.addEventListener("unload", handleUnload);
|
||||
// #ifdef H5
|
||||
if (typeof window !== 'undefined') {
|
||||
window.addEventListener("unload", handleUnload);
|
||||
}
|
||||
// #endif
|
||||
|
||||
function onDataReceived(data) {
|
||||
// 支持追加多个部分
|
||||
@@ -180,7 +184,11 @@ const useChatGroupDBStore = defineStore("messageGroup", () => {
|
||||
...newMsg
|
||||
};
|
||||
toggleTyping(false);
|
||||
window.removeEventListener("unload", handleUnload);
|
||||
// #ifdef H5
|
||||
if (typeof window !== 'undefined') {
|
||||
window.removeEventListener("unload", handleUnload);
|
||||
}
|
||||
// #endif
|
||||
handleUnload();
|
||||
// 调用外部传入的onComplete回调
|
||||
if (options.onComplete) {
|
||||
|
Reference in New Issue
Block a user