refactor: 界面样式重构优化
This commit is contained in:
1 parent
5348ddad36
commit
306d167a55
52 files changed
+3391
-1459
No files matched your search
@@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<web-view :src="url" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref } from "vue";
|
||||
import { onLoad } from "@dcloudio/uni-app";
|
||||
|
||||
const url = ref("");
|
||||
|
||||
onLoad((query: any) => {
|
||||
if (query.url) {
|
||||
url.value = decodeURIComponent(query.url);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.page {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
}
|
||||
</style>
|
||||
|
||||
<route lang="json">
|
||||
{
|
||||
"name": "webview",
|
||||
"style": { "navigationBarTitleText": "网页" }
|
||||
}
|
||||
</route>
|
||||
Reference in new issue
Block a user