mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 22:10:49 +00:00
扫码上传前端增加分类
This commit is contained in:
parent
619b3359b2
commit
282003d997
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user