mall-uniapp/pages/public/webview.vue

19 lines
332 B
Vue
Raw Permalink Normal View History

<!-- 网页加载 -->
2022-11-22 07:45:36 +00:00
<template>
<view>
<web-view :src="url" />
</view>
2022-11-22 07:45:36 +00:00
</template>
<script setup>
import { onLoad } from '@dcloudio/uni-app';
import { ref } from 'vue';
const url = ref('');
onLoad((options) => {
url.value = decodeURIComponent(options.url);
});
</script>
<style lang="scss" scoped></style>