修复二维码异常

This commit is contained in:
zdg 2024-09-29 15:35:25 +08:00
parent 0973128e0e
commit 17e3ee62df
1 changed files with 2 additions and 2 deletions

View File

@ -290,11 +290,11 @@ const getQrUrl = async() => {
// teacherForm.form.qrUrl = baseUrl + qrCodeUrl
// baseUrl = 'https://localhost:7860'
// token
const url = `/teaching/classteachingonmobile?classcourseid=${id}` // -
let url = `teaching/classteachingonmobile?classcourseid=${id}` // -
let qrCodeUrl = '' // -
try {
// url
const res = await Http_api.toLink.setLink(url) // -
const res = await Http_api.toLink.setLink('/' + url) // -
if (res.code == 200) {
const redisKey = res.data
const base64Key = CryptoJS.enc.Utf8.parse(redisKey).toString(CryptoJS.enc.Base64) // base64