diff --git a/pages/API/navigator/new-page/new-page-1.uvue b/pages/API/navigator/new-page/new-page-1.uvue index 7f6755427461573ae52c4e964ca34cfc5c617057..a67ad2e5489900cfe5f2c561d7813a1258993dff 100644 --- a/pages/API/navigator/new-page/new-page-1.uvue +++ b/pages/API/navigator/new-page/new-page-1.uvue @@ -20,7 +20,7 @@ }, onLoad(options : OnLoadOptions) { if (options['data'] != null) { - this.data = options['data']! + this.data = options['data'] as string } }, methods: { diff --git a/pages/template/list-news/detail/detail.uvue b/pages/template/list-news/detail/detail.uvue index 9f160926b901b965afb581c75ca674a315b4d92d..b667e56795a2c231c2b6d32b301df9a6fe14eae2 100644 --- a/pages/template/list-news/detail/detail.uvue +++ b/pages/template/list-news/detail/detail.uvue @@ -23,9 +23,9 @@ } }, onLoad(event : OnLoadOptions) { - this.post_id = event["post_id"] ?? ""; - this.cover = event["cover"] ?? ""; - this.title = event["title"] ?? ""; + this.post_id = event["post_id"] as string ?? ""; + this.cover = event["cover"] as string ?? ""; + this.title = event["title"] as string ?? ""; this.getDetail(); }, methods: {