新增功能: webview浏览器更新

This commit is contained in:
aiShuiJiaoDeXioShou 2024-09-08 15:53:23 +08:00
parent 3ec2b3fbdb
commit 973f7c82f2
3 changed files with 34 additions and 0 deletions

View File

@ -312,6 +312,15 @@
"navigationStyle": "custom"
}
},
{
"path": "pages/webview/webview",
"type": "page",
"layout": "default",
"style": {
"navigationBarTitleText": "h5小程序",
"navigationStyle": "custom"
}
},
{
"path": "pages/mall/index/index",
"aliasPath": "/mall",

View File

@ -0,0 +1,24 @@
<route lang="json5" type="page">
{
layout: 'default',
style: {
navigationBarTitleText: 'h5小程序',
navigationStyle: 'custom',
},
}
</route>
<template>
<view class="webview">
<web-view :src="path" />
</view>
</template>
<script lang="js" setup>
const path = ref('')
onLoad((options) => {
path = options.path || ''
})
</script>
<style lang="scss" scoped></style>

View File

@ -43,6 +43,7 @@ interface NavigateToOptions {
"/pages/service/store" |
"/pages/settings/index" |
"/pages/space/index" |
"/pages/webview/webview" |
"/pages/mall/index/index" |
"/pages/mall/index/user" |
"/pages/mall/index/category" |