There is a problem with vue embedded android, tuner.

this is the template code

<div id="box" @click="jsFormNavtive()"> 
   <img :src="imagesUrl" />
</div>

when created calls data, it comes from android

created(){
    window.jsFormNavtive = this.jsFormNavtive;
}
methods:{
    jsFormNavtive(data){
        window.android.getCamera("00000");
        this.imagesUrl = data;
        alert(data)
        return;
    }
}

undefined
clipboard.png

will appear when you select a picture when the album pops up for the first time.

Press OK, then receive the value from Android when you call the album and select again, then pop up an alert box, and then press OK to call the camera again. Repeat over and over again

Apr.07,2021

shouldn't the values of calling native and receiving native be divided into two functions? are you doing this in one function? This is an endless loop.
or window.android.getCamera ('00000') can pass a callback function.
Don't you pass a value for undefined @ click= "jsFormNavtive ()"?

Menu