This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<web-view style="height: 100vh; width: 100vw" :src="url"></web-view>
|
||||
<web-view class="web-view" :src="url"></web-view>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
@@ -14,4 +14,10 @@ useDidShow(() => {
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss"></style>
|
||||
<style lang="scss">
|
||||
.web-view {
|
||||
// 适配ios底部安全区域
|
||||
padding-bottom: constant(safe-area-inset-bottom);
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user