fix:token重复声明冲突,改为fingerprint变量

This commit is contained in:
ShenQiLun 2026-06-29 11:33:04 +08:00
parent 3c0caed110
commit 2a4078b579

View File

@ -2265,8 +2265,8 @@ export default {
this.pendingProductList.push(entry)
this.pendingCount = this.pendingProductList.length
uni.setStorageSync('pendingProductList', this.pendingProductList)
var token = uni.getStorageSync('token') || ''
uni.setStorageSync('pendingTokenFingerprint', token.substring(token.length - 20))
var fingerprint = token.substring(token.length - 20)
uni.setStorageSync('pendingTokenFingerprint', fingerprint)
// /
await this.appendWaveItem(warehouseData, productId, this.stock ?? '1', salePrice)
if (this.pendingCount >= 200) {
@ -2430,8 +2430,8 @@ export default {
this.pendingProductList.push(entry)
this.pendingCount = this.pendingProductList.length
uni.setStorageSync('pendingProductList', this.pendingProductList)
var token = uni.getStorageSync('token') || ''
uni.setStorageSync('pendingTokenFingerprint', token.substring(token.length - 20))
var fingerprint = token.substring(token.length - 20)
uni.setStorageSync('pendingTokenFingerprint', fingerprint)
// /
await this.appendWaveItem(this.noIsbnWarehouseData, productId, this.noIsbnStock ?? '1', salePrice)
if (this.pendingCount >= 200) {