提交 2026f167 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

refactor: 兼容 onLoad options 类型调整

上级 19d805cc
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
}, },
onLoad(options : OnLoadOptions) { onLoad(options : OnLoadOptions) {
if (options['data'] != null) { if (options['data'] != null) {
this.data = options['data']! this.data = options['data'] as string
} }
}, },
methods: { methods: {
......
...@@ -23,9 +23,9 @@ ...@@ -23,9 +23,9 @@
} }
}, },
onLoad(event : OnLoadOptions) { onLoad(event : OnLoadOptions) {
this.post_id = event["post_id"] ?? ""; this.post_id = event["post_id"] as string ?? "";
this.cover = event["cover"] ?? ""; this.cover = event["cover"] as string ?? "";
this.title = event["title"] ?? ""; this.title = event["title"] as string ?? "";
this.getDetail(); this.getDetail();
}, },
methods: { methods: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册