How to use h5plus in vue projects

use vue-cli to develop the project, and then package it into a mobile phone app,. I want to get the unique identity of the device, but I have been unable to use the H5plus method. I would like to ask how I need to use h5plus in the project.
here"s how I tried to encapsulate the h5plus, but I couldn"t get it. The sentence "msg = false"

/*h5plus */
function plusready(){
}
function Getuuid (){
    let msg = "";
    if(window.plus){
        plusready();
        msg = plus.device.uuid
    }else{
        document.addEventListener("plusready",plusready,false);
         msg = false
    }
    return msg 
}
/* h5plus */
const PlusDevice = {
    uuid:Getuuid()//uuid
    
}
export{PlusDevice}
Oct.05,2021

write

in app.vue
  

Hello, landlord, I also encounter this problem now. Don't you need to configure anything for vue project to use plusready? just write that method on the page directly.

Menu