Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 92d75ca

Browse files
committed
refactor(drawer): close it when navi
1 parent e272974 commit 92d75ca

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

config/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"//--- contact configs ---//": "",
6060
"EMAIL_SUPPORT": "coderplanets@outlook.com",
6161
"// GRAPHQL_ENDPOINT": "https://api.coderplanets.com/graphiql",
62-
"BUILD_VERSION": "v2.0.93",
62+
"BUILD_VERSION": "v2.0.94",
6363
"// 1000 * 60 * 10 = 10 mins": "",
6464
"SSR_CACHE_TIME": 60000
6565
}

deploy/production/web.tar.gz

-118 Bytes
Binary file not shown.

src/containers/unit/Footer/logic.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ const DataSolver = [
102102
match: asyncRes(EVENT.COMMUNITY_CHANGE_BEFORE),
103103
action: (data): void => {
104104
const { path } = data[EVENT.COMMUNITY_CHANGE_BEFORE]
105-
send(EVENT.DRAWER.CLOSE)
106105
store.changeCommunity(path)
107106
send(EVENT.COMMUNITY_CHANGE)
108107
},

utils/helper.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,12 @@ export const changeToCommunity = (raw = ''): void => {
282282
if (isNonCommunityPage || isArticlePage || isTargetNonCommunityPage) {
283283
const target = raw === HCN ? '' : raw
284284
Router.push(`/${target}`)
285+
send(EVENT.DRAWER.CLOSE)
285286
return
286287
}
287288

288289
send(EVENT.COMMUNITY_CHANGE_BEFORE, { path: raw })
290+
send(EVENT.DRAWER.CLOSE)
289291
}
290292

291293
/**

0 commit comments

Comments
 (0)