Przeglądaj źródła

扫码上传前端增加分类

evoxwht 2 lat temu
rodzic
commit
282003d997
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      template/admin/src/pages/app/upload/index.vue

+ 3 - 0
template/admin/src/pages/app/upload/index.vue

@@ -62,10 +62,12 @@ export default {
       uploading: true,
       limit: 20,
       loading: false,
+      pid: 0
     };
   },
   created() {
     this.token = this.$route.query.token;
+    this.pid = this.$route.query.pid;
     document.title = '手机端扫码上传';
   },
   methods: {
@@ -117,6 +119,7 @@ export default {
         const formData = new FormData();
         formData.append('file', file);
         formData.append('uploadToken', this.token);
+        formData.append('pid', this.pid);
         scanUpload(formData)
           .then((res) => {
             if (res.status == 200) {