From f4357cc86cd66e27476bc865b8a61b04c1e7c59a Mon Sep 17 00:00:00 2001 From: feige <791364011@qq.com> Date: 星期六, 23 三月 2024 22:16:07 +0800 Subject: [PATCH] 提交代码 --- ruoyi-ui/src/views/pet/petInfo.vue | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ruoyi-ui/src/views/pet/petInfo.vue b/ruoyi-ui/src/views/pet/petInfo.vue index e0d5a8c..199962a 100644 --- a/ruoyi-ui/src/views/pet/petInfo.vue +++ b/ruoyi-ui/src/views/pet/petInfo.vue @@ -387,7 +387,7 @@ </div> </template> <script> -import {getPetList, listPetnote,uploadPic, download,updatePet} from "@/api/pet/index"; +import {getPetList, listPetnote,uploadPic1, download,updatePet} from "@/api/pet/index"; import {addRole, updateRole} from "@/api/system/role"; import {blobValidate} from "@/utils/ruoyi"; import errorCode from "@/utils/errorCode"; @@ -619,7 +619,7 @@ formData.append('uploadFile', file); let _this = this - uploadPic(formData).then(response => { + uploadPic1(formData).then(response => { let pth = response.data.originalFilename.substr(response.data.originalFilename.length-4, response.data.originalFilename.length) _this.fileList2.push({name:response.data.fileName, url:response.data.url}) console("ok") @@ -753,7 +753,7 @@ this.$refs.upload.clearFiles(); // this.uploading1 = true; //alert(100) - uploadPic(formData).then(response => { + uploadPic1(formData).then(response => { // alert(18) // let pth = response.data.originalFilename.substr(response.data.originalFilename.length-4, response.data.originalFilename.length) // _this.fileList1.push({name:response.data.fileName, url:response.data.url}) @@ -780,7 +780,7 @@ this.$refs.upload1.clearFiles(); // this.uploading1 = true; //alert(100) - uploadPic(formData).then(response => { + uploadPic1(formData).then(response => { // alert(18) // let pth = response.data.originalFilename.substr(response.data.originalFilename.length-4, response.data.originalFilename.length) // _this.fileList1.push({name:response.data.fileName, url:response.data.url}) -- Gitblit v1.9.1