|
@@ -17,13 +17,17 @@ const paging = ref();
|
|
|
|
|
|
|
|
onLoad((options) => {
|
|
onLoad((options) => {
|
|
|
// 设置标题
|
|
// 设置标题
|
|
|
- const { url, title } = recursiveDecodeURIComponentSimple(options);
|
|
|
|
|
- uni.setNavigationBarTitle({ title });
|
|
|
|
|
- title.value = title;
|
|
|
|
|
- uni.request({
|
|
|
|
|
- url,
|
|
|
|
|
- success: (res) => {
|
|
|
|
|
|
|
+ const obj = recursiveDecodeURIComponentSimple(options);
|
|
|
|
|
+ console.log(obj);
|
|
|
|
|
+
|
|
|
|
|
+ uni.setNavigationBarTitle({ title: obj?.title || '-' });
|
|
|
|
|
+ title.value = obj.title || '-';
|
|
|
|
|
+ obj.url && uni.request({
|
|
|
|
|
+ url: obj.url,
|
|
|
|
|
+ success: (res: any) => {
|
|
|
// 只要body内容
|
|
// 只要body内容
|
|
|
|
|
+ console.log(res);
|
|
|
|
|
+
|
|
|
content.value = res.data as string;
|
|
content.value = res.data as string;
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|