vue中生成二维码效果如下:
1.安装
npm install vue-qriously --save-dev
2.main.js引入
import VueQriously from 'vue-qriously';
Vue.use(VueQriously);
3.使用(中间可以决定定位一个logo)
that.myText={
"userAccount":that.userId,
"userName": utf16to8(that.userName),
"token":that.token
}
that.initQCode=JSON.stringify(that.myText)