|
@@ -11,7 +11,6 @@ import { setStorage, getStorage, removeStorage } from '@/common/utils/storage.js
|
|
|
export function replaceStringInObject(obj, targets, replacement) {
|
|
|
// 将对象转换为字符串
|
|
|
let str = JSON.stringify(obj)
|
|
|
- alert(str)
|
|
|
// 替换所有目标字符串为替换字符串
|
|
|
for (var target of targets) {
|
|
|
str = str.replace(new RegExp(target, 'g'), replacement)
|
|
@@ -411,6 +410,7 @@ export const uploadImgFull = async function (file) {
|
|
|
})
|
|
|
.then(res => {
|
|
|
uni.hideLoading()
|
|
|
+ alert(JSON.stringify(res.data.data))
|
|
|
resolve(
|
|
|
replaceStringInObject(
|
|
|
res.data.data,
|
|
@@ -432,6 +432,7 @@ export const uploadImgFull = async function (file) {
|
|
|
filePath: file,
|
|
|
success(res) {
|
|
|
uni.hideLoading()
|
|
|
+ alert(JSON.stringify(JSON.parse(res.data).data))
|
|
|
resolve(
|
|
|
replaceStringInObject(
|
|
|
JSON.parse(res.data).data,
|