Commit 01bd501b authored by hanfeng zhang's avatar hanfeng zhang

321

parent b924797b
......@@ -100,15 +100,7 @@ export default Vue.extend({
this.qrCodeText = JSON.stringify(this.joinInfo)
let url = window.location.origin + '/team/confirm-join'
// console.log(this.qrCodeText.split(',').map(i=> i.replaceAll(':','=')));
// for(const key in this.joinInfo) {
// url = `${url}?${key}=${this.joinInfo[key]}`
// }
// console.log(url, 'ur;')
// console.log(this.qrCodeText,'sdkfjskldfjlksdfjlksdfklsdkf');
this.qrCodeText = `${url}?${urloutput}`
console.log( this.qrCodeText,'output');
......@@ -121,12 +113,9 @@ export default Vue.extend({
let res =''
const arr = Object.entries(item)
arr.map((i,index)=>{
let string
if(index+1<arr.length){
string = `${i[0]}=${i[1]}&`
}else{
string = `${i[0]}=${i[1]}`
}
let string
index+1<arr.length? string = `${i[0]}=${i[1]}&`:string = `${i[0]}=${i[1]}`
res += string
})
return res
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment