退料问题修复
This commit is contained in:
parent
6a02be057f
commit
79abbac87d
|
|
@ -226,7 +226,11 @@ export default {
|
||||||
method: 'get',
|
method: 'get',
|
||||||
data: param,
|
data: param,
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
|
if (!res.data.code) {
|
||||||
|
res = JSON.parse(decryptWithSM4(res.data))
|
||||||
|
} else {
|
||||||
res = res.data
|
res = res.data
|
||||||
|
}
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
if (res.data && res.data.length > 0) {
|
if (res.data && res.data.length > 0) {
|
||||||
|
|
@ -419,8 +423,11 @@ export default {
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: param,
|
data: param,
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
|
if (!res.data.code) {
|
||||||
|
res = JSON.parse(decryptWithSM4(res.data))
|
||||||
|
} else {
|
||||||
res = res.data
|
res = res.data
|
||||||
console.log(res)
|
}
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '添加成功!',
|
title: '添加成功!',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue