|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div :class="['home']" :id="'preloadedImages'">
|
|
|
+ <div :class="['home']" :id="'preloadedImages'" @click="onLevel">
|
|
|
<main class="home-main">
|
|
|
<div class="home-main-box">
|
|
|
<div class="home-TUIKit">
|
|
@@ -83,8 +83,9 @@ export default defineComponent({
|
|
|
dialogShow: false,
|
|
|
});
|
|
|
|
|
|
- const onClose = () => {
|
|
|
+ const onClose = (e: any) => {
|
|
|
if (window.parent) {
|
|
|
+ e.stopPropagation();
|
|
|
window.parent.postMessage(
|
|
|
{
|
|
|
api: "onImClose",
|
|
@@ -94,6 +95,17 @@ export default defineComponent({
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+ const onLevel = () => {
|
|
|
+ if (window.parent) {
|
|
|
+ window.parent.postMessage(
|
|
|
+ {
|
|
|
+ api: "onLevel",
|
|
|
+ },
|
|
|
+ "*"
|
|
|
+ );
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
const handleCurrentConversation = (value: string) => {
|
|
|
data.currentModel = "message";
|
|
|
data.currentConversationID = value;
|
|
@@ -152,6 +164,7 @@ export default defineComponent({
|
|
|
isMsgNeedReadReceipt,
|
|
|
displayOnlineStatus,
|
|
|
onClose,
|
|
|
+ onLevel,
|
|
|
handleManage,
|
|
|
};
|
|
|
},
|