feat(custom): 新增webview
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-04-21 05:40:07 +08:00
parent ee446dd4a9
commit ddd7789817
4 changed files with 43 additions and 14 deletions

View File

@@ -0,0 +1,18 @@
<template>
<view>
<web-view :src="src" />
</view>
</template>
<script setup lang="ts">
import { ref } from 'vue'
import Taro from '@tarojs/taro'
const src = ref('')
Taro.useLoad((e) => {
src.value = `${e.url}?uid=${Taro.getStorageSync('uid')}`
})
</script>
<style lang="scss"></style>