diff --git a/src/common/axios.js b/src/common/axios.js index 8ccaf91b..da0ae36f 100644 --- a/src/common/axios.js +++ b/src/common/axios.js @@ -35,7 +35,7 @@ instance.interceptors.response.use(res => { return res.data } else if (res.config.alwaysReturn) { return res.data - } else if (res.data.code == 0) { + } else if (res.data.code == 200) { return res.data } else if (res.data.code === 1) { uni.showToast({ diff --git a/src/components/AiUploader.vue b/src/components/AiUploader.vue index 544a35c3..6c200745 100644 --- a/src/components/AiUploader.vue +++ b/src/components/AiUploader.vue @@ -57,7 +57,15 @@ export default { preview: Boolean, size: {default: 10 * 1024 * 1024}, disabled: Boolean, - sourceType: {default: () => ['album', 'camera']} + sourceType: {default: () => ['album', 'camera']}, + withoutToken: { + type: Boolean, + default: false, + }, + imgUrlHttp: { + type: String, + default: '', + }, }, computed: { ...mapState(['token']), @@ -140,6 +148,7 @@ export default { } else { this.$http.post(this.api, formData, { params: {type: this.type}, + withoutToken: this.withoutToken }).then((res) => { if (res?.data) { this.$emit('data', res.data) @@ -162,6 +171,8 @@ export default { this.fileList.push(res.data) } else if (this.api == '/admin/file/add-portrait') { this.fileList.push({url: res.data?.split(";")?.[0], id: res.data?.split(";")?.[1]}) + }else if (this.api == '/common/upload') { //图片url回显需先拼接imgUrlHttp + this.fileList.push({url: this.imgUrlHttp + res.data.fileName, fileName: res.data.originalFilename, filePath: this.imgUrlHttp + res.data.fileName}) } this.$emit("update:def", this.fileList) this.$emit("list", this.fileList) diff --git a/src/manifest.json b/src/manifest.json index 5e9463ef..aee53b67 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -29,7 +29,7 @@ "open": true, "proxy": { "/lan": { - "target": "http://192.168.1.87:9000", + "target": "http://8.148.23.227:8080", "changeOrigin": true, "pathRewrite": { "^/lan": "/" diff --git a/src/project/hljjm/AppChildrenInfo/AppChildrenDetail.vue b/src/project/hljjm/AppChildrenInfo/AppChildrenDetail.vue index 3ccbe04b..3018b403 100644 --- a/src/project/hljjm/AppChildrenInfo/AppChildrenDetail.vue +++ b/src/project/hljjm/AppChildrenInfo/AppChildrenDetail.vue @@ -14,10 +14,10 @@ -
@@ -144,21 +141,24 @@