Browse Source

no message

linwenxin 1 month ago
parent
commit
f4664babd8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/common/utils/util.js

+ 2 - 1
src/common/utils/util.js

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