Преглед изворни кода

fix: 接口地址改变为 upload

菲鸽 пре 2 година
родитељ
комит
714258ca48
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/pages/index/upload.vue

+ 2 - 2
src/pages/index/upload.vue

@@ -32,7 +32,7 @@ const chooseImage = () => {
       console.log(res)
       console.log(res)
       const tempFilePath = res.tempFiles[0].tempFilePath
       const tempFilePath = res.tempFiles[0].tempFilePath
       uni.uploadFile({
       uni.uploadFile({
-        url: 'https://ukw0y1.laf.run/uploadFile',
+        url: 'https://ukw0y1.laf.run/upload',
         filePath: tempFilePath,
         filePath: tempFilePath,
         name: 'file',
         name: 'file',
         formData: {
         formData: {
@@ -53,7 +53,7 @@ const chooseImage = () => {
       console.log(res)
       console.log(res)
       const tempFilePath = res.tempFilePaths[0]
       const tempFilePath = res.tempFilePaths[0]
       uni.uploadFile({
       uni.uploadFile({
-        url: 'https://ukw0y1.laf.run/uploadFile',
+        url: 'https://ukw0y1.laf.run/upload',
         filePath: tempFilePath,
         filePath: tempFilePath,
         name: 'file',
         name: 'file',
         formData: {
         formData: {