1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-06-11 12:49:30 +08:00

refactor: 将页面配置通过插件动态化配置(plugin-uni-halo)

This commit is contained in:
小莫唐尼
2024-06-24 18:59:05 +08:00
parent 959acab9c7
commit e17edade28
54 changed files with 5299 additions and 5653 deletions
+15 -13
View File
@@ -1,25 +1,27 @@
<template>
<view class="app-page"><web-view :src="webUrl"></web-view></view>
<view class="app-page">
<web-view :src="webUrl"></web-view>
</view>
</template>
<script>
export default {
data() {
return {
title: '',
webUrl: ''
};
},
onLoad(e) {
const { title, url } = JSON.parse(e.query.data);
this.webUrl = url;
this.fnSetPageTitle(title);
}
data() {
return {
title: '',
webUrl: ''
};
},
onLoad(e) {
const {title, url} = JSON.parse(e.query.data);
this.webUrl = url;
this.fnSetPageTitle(title);
}
};
</script>
<style scoped>
.app-page {
width: 100vw;
width: 100vw;
}
</style>