diff --git a/main.uts b/main.uts index f8fa502212cd567f9ee877a33b293b86e2c776d7..f321b3c4f1191409326709752fc3c05d4a943163 100644 --- a/main.uts +++ b/main.uts @@ -19,8 +19,8 @@ export function createApp() { str: 'default reactive string', num: 0, bool: false, - }) - app.config.globalProperties.globalPropertiesFn = () : string => { + } as UTSJSONObject) + app.config.globalProperties.globalPropertiesFn = function () : string { console.log('this.globalPropertiesStr', this.globalPropertiesStr) console.log('this.globalPropertiesNum', this.globalPropertiesNum) return `globalPropertiesStr: ${this.globalPropertiesStr}, globalPropertiesNum: ${this.globalPropertiesNum}` @@ -29,4 +29,4 @@ export function createApp() { return { app } -} +}