鸿蒙代码
<!-- #ifdef APP-HARMONY -->
<view class="viewContent">
<web-view id="web-view" :fullscreen="false" style="height: calc(100vh - 44px);" :src="state.src" class="uni-flex-item"
@message="message">
</web-view>
</view>
<!-- #endif -->
安卓代码
// #ifdef APP-ANDROID || APP-IOS
wv = plus.webview.create('', id, {
// 'uni-app': 'none', //不加载uni-app渲染层框架,避免样式冲突
top: data。height,
bottom: 0,
zIndex: 0,
cacheMode: 'default'
});
wv.loadURL(state.src);
// #endif
1 个回复
19302com (作者)
已解决
鸿蒙webview打开的h5,取的cookie中不能有-
const cookieToken = Cookies.get("z-xtoken") || Cookies.get('zxtoken');