删除配置

This commit is contained in:
moleier 2024-04-18 23:10:52 +08:00
parent 0a23a58068
commit e6d44a4598

View File

@ -1,6 +1,6 @@
<template> <template>
<view> <view>
<web-view class="webView" :webview-styles="webviewStyles" src="http://192.168.34.139:5173/" :fullscreen="false" <web-view class="webView" src="http://192.168.34.139:5173/" :fullscreen="false"
@onPostMessage="handlePostMessage"></web-view> @onPostMessage="handlePostMessage"></web-view>
<footers class="footer" activeTab="submit"></footers> <footers class="footer" activeTab="submit"></footers>
</view> </view>
@ -13,6 +13,7 @@
footers footers
}, },
onReady() { onReady() {
try{
var currentWebview = this.$scope.$getAppWebview(); var currentWebview = this.$scope.$getAppWebview();
let userInfo = JSON.parse(uni.getStorageSync('userInfo')); let userInfo = JSON.parse(uni.getStorageSync('userInfo'));
let str = "需要发送的信息" let str = "需要发送的信息"
@ -31,6 +32,9 @@
}) })
wv.evalJS(`${_funName}(${JSON.stringify(_data)})`); wv.evalJS(`${_funName}(${JSON.stringify(_data)})`);
}, 1000); }, 1000);
}catch(e){
//TODO handle the exception
}
}, },
methods: { methods: {
handlePostMessage: function(data) { handlePostMessage: function(data) {