add qrcode.
add function configuration in main.js
fix qrcode.