apt15e安装修改

This commit is contained in:
2025-09-02 11:29:52 +08:00
parent 80ab4017c8
commit 7d70567c68
9 changed files with 37 additions and 9 deletions

View File

@@ -0,0 +1,28 @@
<template>
<view>
<web-view :src="url"></web-view>
</view>
</template>
<script>
export default {
data() {
return {
url: ''
};
},
onLoad (options) {
const url = 'http://192.168.100.201'
const timestamp = new Date().getTime()
this.url = `${url}?timestamp=${timestamp}`
uni.onNetworkStatusChange((res) => {
if (res.isConnected) {
this.url = `${url}?timestamp=${timestamp}`;
}
})
},
onUnload () {
uni.offNetworkStatusChange()
}
}
</script>

View File

@@ -11,7 +11,7 @@
export default {
data() {
return {
url: 'http://192.168.2.100:8011'
url: 'http://192.168.100.201'
}
},
methods: {