浏览代码

reactor:更新提示只会提示一个;

zhangchong 1 年之前
父节点
当前提交
98266c978b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/utils/signalR.tsx

+ 1 - 0
src/utils/signalR.tsx

@@ -8,6 +8,7 @@ let notice: any = null;
  * @description 判断是否需要更新
  */
 async function judge() {
+	if (notice) notice.close();
 	// @ts-ignore'
 	const messageContent = () => {
 		return (