diff --git a/src/platforms/app-plus/service/framework/webview/index.js b/src/platforms/app-plus/service/framework/webview/index.js index 628f5c5740d81dc5a3711115e7d3a4d58a34f114..241270f4896df219dd09c80af63c47474b07e606 100644 --- a/src/platforms/app-plus/service/framework/webview/index.js +++ b/src/platforms/app-plus/service/framework/webview/index.js @@ -60,7 +60,7 @@ function getDebugRefresh (path, query, routeOptions) { } } -export function createWebview (path, routeOptions, query) { +export function createWebview (path, routeOptions) { if (routeOptions.meta.isNVue) { const webviewId = id++ const webviewStyle = parseWebviewStyle( @@ -68,7 +68,6 @@ export function createWebview (path, routeOptions, query) { path, routeOptions ) - webviewStyle.debugRefresh = getDebugRefresh(path, query, routeOptions) if (process.env.NODE_ENV !== 'production') { console.log(`[uni-app] createWebview`, webviewId, path, webviewStyle) } @@ -90,8 +89,10 @@ export function initWebview (webview, routeOptions, path, query) { parseInt(webview.id), '', routeOptions - ) - webviewStyle.debugRefresh = getDebugRefresh(path, query, routeOptions) + ) + if (!routeOptions.meta.isNVue) { + webviewStyle.debugRefresh = getDebugRefresh(path, query, routeOptions) + } if (process.env.NODE_ENV !== 'production') { console.log(`[uni-app] updateWebview`, webviewStyle) }