To interact with the Vue project, you can use the runJavaScript API and javaScriptProxy API.
- runJavaScript is used to asynchronously execute a JavaScript script and returns the result.
- javaScriptProxy is used to register a JavaScript object with a window object and invoke a method.
- You can mount the methods in the Vue to the document object of the JavaScript script to implement the interaction between the Vue and JavaScript script.
Reference
runJavaScript
javaScriptProxy