How do vue H5 interact with Android and ios?

problem description

1. First of all, I need to implement such a function. I wrote it when I first docked with the native vue-cli and logged in. After they logged in successfully, they got token and asked me to write a method and call my method to pass it to me. My token is set up like
axios.defaults.headers.common ["token"] = tokens; in main.js. Please tell me how to write this method?

2. I"m going to click a button to jump to a creation page on Android ios;
3. I"m going to pass one of the parameters here to the native

.

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Apr.02,2021

1, you can spell the token directly on the url, and then take it from the page, or

  

native can get the window object. You can mount methods or token and other things to the window object, which is equivalent to global variables. Of course, you can get the native method, which is already in the global form, and then you can call each other

.
Menu