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:
+15
-13
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user