wails icon indicating copy to clipboard operation
wails copied to clipboard

Why isn't my binding method taking effect?

Open FiyZou opened this issue 1 year ago • 4 comments

Description

In Vue, console.log isn't printing any information.

To Reproduce

image image image image image

Expected behaviour

Screenshots

No response

Attempted Fixes

No response

System Details

# Wails
Version | v2.7.1

# System
┌─────────────────────────┐
| OS           | MacOS    |
| Version      | 14.1.2   |
| ID           | 23B92    |
| Go Version   | go1.21.3 |
| Platform     | darwin   |
| Architecture | arm64    |
| CPU          | Unknown  |
| GPU          | Unknown  |
| Memory       | Unknown  |
└─────────────────────────┘

# Dependencies
┌────────────────────────────────────────────────────────────────┐
| Dependency                | Package Name | Status    | Version |
| Xcode command line tools  | N/A          | Installed | 2403    |
| Nodejs                    | N/A          | Installed | 16.10.0 |
| npm                       | N/A          | Installed | 7.24.0  |
| *Xcode                    | N/A          | Available |         |
| *upx                      | N/A          | Available |         |
| *nsis                     | N/A          | Available |         |
└─────────────────── * - Optional Dependency ────────────────────┘

Additional context

No response

FiyZou avatar Feb 04 '24 09:02 FiyZou

Did you bind App?

leaanthony avatar Feb 04 '24 20:02 leaanthony

image

Yes, I've bound the app in the main method. Interestingly, when I use fmt to print in the Go method, I get the expected content. However, when I call this binding method in Vue and print its return value, it turns out to be empty.

FiyZou avatar Feb 05 '24 01:02 FiyZou

My guess is something related to Vue in this instance

leaanthony avatar Feb 05 '24 11:02 leaanthony

Can you link to a reproducible replica please.

mateothegreat avatar May 18 '24 05:05 mateothegreat