初始化代码
This commit is contained in:
27
uniapp/uni-app/mine/pages/common/web.vue
Normal file
27
uniapp/uni-app/mine/pages/common/web.vue
Normal file
@@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<view>
|
||||
<web-view :src="url"></web-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
mapState,
|
||||
} from 'vuex';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
url: ''
|
||||
}
|
||||
},
|
||||
async onLoad(options) {
|
||||
let {
|
||||
url
|
||||
} = options;
|
||||
this.url = decodeURIComponent(url);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
</style>
|
||||
Reference in New Issue
Block a user