修复相同appid不同版本数据混淆问题

This commit is contained in:
aixianling
2022-06-30 10:14:01 +08:00
parent 47ce4ba424
commit 9ccf4e2a3b

View File

@@ -125,9 +125,9 @@ export default {
}) })
}, },
handleDownload(row) { handleDownload(row) {
let {appid} = row let {appid, pid} = row
this.instance.post("/node/wxmp/download", null, { this.instance.post("/node/wxmp/download", null, {
params: {appid}, params: {appid, pid},
responseType: "blob" responseType: "blob"
}).then(res => { }).then(res => {
if (res?.code == 1) { if (res?.code == 1) {
@@ -145,10 +145,10 @@ export default {
}) })
}, },
handleZip(row) { handleZip(row) {
let {miniapp_appid: appid, version} = row let {miniapp_appid: appid, version, id} = row
if (!version) return this.$message.error("请先维护要上传的版本!") if (!version) return this.$message.error("请先维护要上传的版本!")
appid && this.instance.post("/node/wxmp/getZip", null, { appid && this.instance.post("/node/wxmp/getZip", null, {
params: {appid} params: {appid, id}
}).then(res => { }).then(res => {
if (res?.code == 0) { if (res?.code == 0) {
row.count = 1 row.count = 1
@@ -209,9 +209,9 @@ export default {
}).catch(() => 0) }).catch(() => 0)
}, },
handleConfirmZip(row) { handleConfirmZip(row) {
let {appid} = row let {appid, pid} = row
return this.instance.post("/node/wxmp/confirmZip", null, { return this.instance.post("/node/wxmp/confirmZip", null, {
params: {appid} params: {appid, pid}
}).then(res => { }).then(res => {
if (res?.code == 0) return res.data if (res?.code == 0) return res.data
}) })