浏览代码

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