提交 f514eb09 编写于 作者: fxy060608's avatar fxy060608

fix(v3): remove debug refresh (nvue)

上级 a2335b21
......@@ -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)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册