From 9d3e12b88c3b5556a9b186e7afcc813236cc126a Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期四, 01 八月 2024 18:26:41 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 wechat_jiaxuan/pages/sets/index.js |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/wechat_jiaxuan/pages/sets/index.js b/wechat_jiaxuan/pages/sets/index.js
index 7b2701b..2aacd81 100644
--- a/wechat_jiaxuan/pages/sets/index.js
+++ b/wechat_jiaxuan/pages/sets/index.js
@@ -2,8 +2,7 @@
   wxLogOff,
   wxLoginCustomer
 } from '../../api/index'
-const { HYEventBus } = require('hy-event-store')
-const eventBus = new HYEventBus()
+import { eventBus } from '../../utils/eventBus'
 Page({
 
   /**
@@ -49,13 +48,13 @@
                   title: '娉ㄩ攢鎴愬姛',
                 })
                 setTimeout(() => {
+                  eventBus.emit("reloadHome")
+                }, 1000) 
+                setTimeout(() => {
                   wx.switchTab({
                     url: '/pages/index/index',
                   })
                 }, 500)
-                setTimeout(() => {
-                  eventBus.emit("reloadHome")
-                }, 1000) 
               } else {
                 console.log('鐧诲綍澶辫触锛�')
               }

--
Gitblit v1.9.3