You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
看到:Dart and JS Intercommunication这个章节,之前vue create的项目,导入:
webf.methodChannel.addMethodCallHandler('setPlayerState', function(state) {
// Here, 'state' holds the data sent from Dart.
// You can use the 'state' as needed in your JavaScript logic.
this.playerState = state;
// If there's a listener setup for player state changes, notify it.
if (typeof this.onPlayerStateChanged === 'function') {
this.onPlayerStateChanged(this.playerState);
}
// You can also send back a response to Dart, if needed.
return 'Received state: ' + state;
});
然后vue build, 一直报错can not find webf, 需要导入webf的vue库么?还是webf.js?应该在哪里导入?
The text was updated successfully, but these errors were encountered:
看到:Dart and JS Intercommunication这个章节,之前vue create的项目,导入:
然后vue build, 一直报错can not find webf, 需要导入webf的vue库么?还是webf.js?应该在哪里导入?
The text was updated successfully, but these errors were encountered: