Skip to content

Commit

Permalink
feat: 🎸 mini openWebview add params pageWebviewUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingyun2010 committed Jan 12, 2024
1 parent fe97e48 commit 5f7ebd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,12 @@ const Mini = {
/**
* 打开小程序的webview
*/
openWebview(url: string, query?: Record<string, any>) {
openWebview(url: string, query?: Record<string, any>, pageWebviewUrl?: string) {
if (!url) {
return;
}

let baseUrl = '/pages/pageCommon/webView/index';
let baseUrl = pageWebviewUrl || '/pages/pageCommon/webView/index';
const split = url.split('?');
let params: any = query;
if (split[1]) {
Expand Down

0 comments on commit 5f7ebd7

Please sign in to comment.