From edc25342629e056714f1c4155750a0d0e7c38406 Mon Sep 17 00:00:00 2001 From: yurj26 <1816387074@qq.com> Date: Mon, 13 Nov 2023 20:18:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=AF=AD=E6=B3=95?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/state/data/data.uvue | 2 +- pages/state/methods/methods.uvue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/state/data/data.uvue b/pages/state/data/data.uvue index b467d1c..4a545ed 100644 --- a/pages/state/data/data.uvue +++ b/pages/state/data/data.uvue @@ -42,7 +42,7 @@ // let obj:{ name : string, age : number } = { name: 'John', age: 30 } export default { - data() : object { + data() { return { num: 2023 as number, str: '我是字符串' as string, diff --git a/pages/state/methods/methods.uvue b/pages/state/methods/methods.uvue index 1fbd2a3..9058f05 100644 --- a/pages/state/methods/methods.uvue +++ b/pages/state/methods/methods.uvue @@ -25,7 +25,7 @@ this.num ++ }, getMultiply100Num() : number{ - return num * 100 + return this.num * 100 } } } -- GitLab