This commit is contained in:
bb_pan 2025-07-08 20:49:33 +08:00
parent 59df211105
commit 9b2a54c26c
1 changed files with 8 additions and 5 deletions

View File

@ -250,7 +250,7 @@ onShow((opt) => {
const getCodeList = async () => { const getCodeList = async () => {
const params = { const params = {
teamId: queryParamsTemp.value.teamId, teamId: queryParamsTemp.value.teamId,
proId: queryParamsTemp.value.projectId, proId: queryParamsTemp.value.proId,
typeId: queryParamsTemp.value.typeId, typeId: queryParamsTemp.value.typeId,
} }
try { try {
@ -444,13 +444,16 @@ const handleScanError = (error) => {
// //
const handleQrCode = async (qrCode) => { const handleQrCode = async (qrCode) => {
const params = { qrCode, typeId: queryParams.value.typeId } const params = {
qrCode,
typeId: queryParams.value.typeId,
proId: queryParamsTemp.value.proId,
teamId: queryParamsTemp.value.teamId,
}
console.log('🚀 ~ success: ~ queryParams.value.isAddCode:', queryParams.value.isAddCode) console.log('🚀 ~ success: ~ queryParams.value.isAddCode:', queryParams.value.isAddCode)
try { try {
const res = null let res = null
if (queryParamsTemp.value.isBack) { if (queryParamsTemp.value.isBack) {
params.proId = queryParamsTemp.value.projectId
params.teamId = queryParamsTemp.value.teamId
res = await getMachine(params) res = await getMachine(params)
} else { } else {
res = await getCodeScanAPI(params) res = await getCodeScanAPI(params)