Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
refactor(one): 不再从 @remax/wechat 引用 api (#1771)
Browse files Browse the repository at this point in the history
Co-authored-by: 诸威 <[email protected]>
  • Loading branch information
yesmeck and 诸威 authored Nov 23, 2021
1 parent 126f445 commit 37cef4e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/remax-one/src/api/index.wechat.ts
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
export { navigateTo, navigateBack, redirectTo, reLaunch, switchTab } from '@remax/wechat';
import { promisify } from '@remax/framework-shared';

declare const wx: any;

export const navigateTo = promisify(wx.navigateTo);
export const navigateBack = promisify(wx.navigateBack);
export const redirectTo = promisify(wx.redirectTo);
export const reLaunch = promisify(wx.reLaunch);
export const switchTab = promisify(wx.switchTab);

0 comments on commit 37cef4e

Please sign in to comment.