diff --git a/pages/component/web-view/web-view.uvue b/pages/component/web-view/web-view.uvue index a859ff3e3714603d5066f5f6a8788f1590831bbc..dad31898ccf1c6a309885699b59f7d8ef3b70f22 100644 --- a/pages/component/web-view/web-view.uvue +++ b/pages/component/web-view/web-view.uvue @@ -33,6 +33,13 @@ + + + + 前进、后退功能在Windows端需要打自定义基座,MAC端需要配置Xcode环境后进行真机运行或者打自定义基座 + + + @@ -78,6 +85,22 @@ // #endif }, methods: { + getPackageName() : string { + const res = uni.getAppBaseInfo(); + let packageName : string = "" + + // #ifdef APP-IOS + packageName = res.bundleId + // #endif + + return packageName + }, + isProd(): boolean { + if (this.getPackageName() == 'io.dcloud.hellouniappx') { + return true + } + return false + }, back() { this.webviewContext?.back(); },