后端给链接地址并且给token进行跳转
如果点击有key=4,说明要跳转到相应的页面
auth是通过后端获取的地址,
jdk是后端获取的相应的token,
然后进行拼接,进行window.open()进行跳转
if (key == 4) {var testUrl = ''const auth = await apiAuth.findLetterTicketURL({})console.log('auth', auth)const jdh = await api.jdhToken({})console.log('jdh', jdh)var url = auth.datavar result = ''var itemfor (item in jdh.data) {if (jdh.data[item] && String(jdh.data[item])) {result += `&${item}=${jdh.data[item]}`}}if (result) {result = '?' + result.slice(1)}testUrl = `${url}${result}`window.open(testUrl, '_blank')return}