feat:first commit
This commit is contained in:
23
src/pages/webView/index.vue
Normal file
23
src/pages/webView/index.vue
Normal file
@@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<web-view :src="url" allow :title="title" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'cusWebView',
|
||||
data() {
|
||||
return {
|
||||
url: '',
|
||||
title: ''
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
this.url = decodeURIComponent(options?.url)
|
||||
},
|
||||
onReady() {
|
||||
uni.setNavigationBarTitle({
|
||||
title: this.title
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user