You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
2.5 KiB

{"remainingRequest":"/Users/linhuakun/Downloads/nodejs/codewhy/node_modules/vue-loader/lib/index.js??vue-loader-options!/Users/linhuakun/Downloads/nodejs/codewhy/src/views/setupProfile/SetupProfile.vue?vue&type=style&index=0&id=64d49db6&scoped=true&lang=css&","dependencies":[{"path":"/Users/linhuakun/Downloads/nodejs/codewhy/src/views/setupProfile/SetupProfile.vue","mtime":1608910952643},{"path":"/Users/linhuakun/Downloads/nodejs/codewhy/node_modules/css-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/nodejs/codewhy/node_modules/vue-loader/lib/loaders/stylePostLoader.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/nodejs/codewhy/node_modules/postcss-loader/src/index.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/nodejs/codewhy/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/nodejs/codewhy/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKLmJhY2sgaW1nIHsKICBtYXJnaW4tdG9wOiAxMnB4Owp9Ci50aXRsZSB7CiAgZm9udC1zaXplOiAxNXB4Owp9Ci5ob21lewogIGhlaWdodDogMTAwdmg7CiAgcG9zaXRpb246IHJlbGF0aXZlOwp9Cg=="},{"version":3,"sources":["SetupProfile.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"SetupProfile.vue","sourceRoot":"src/views/setupProfile","sourcesContent":["<template>\n <div class=\"home\">\n <Setup-navbar></Setup-navbar>\n <van-uploader\n :after-read=\"afterRead\"\n />\n </div>\n</template>\n\n<script>\nimport SetupNavbar from \"@/views/setupProfile/childComps/SetupNavbar\";\nexport default {\n components: {\n SetupNavbar,\n },\n data() {\n return {\n fileList: [],\n id:'',\n url:''\n }\n },\n created(){\n this.id=window.sessionStorage.getItem('userId')\n this.url='/upload/'+this.id+'/avatar'\n }\n ,\n methods:{\n async afterRead(file) {\n // 此时可以自行将文件上传至服务器\n console.log(file);\n const formdata=new FormData();\n formdata.append('avatar',file.file)\n // formdata.append('id',1)\n const {data:res} = await this.$http.post(this.url,formdata)\n console.log(res);\n }\n }\n}\n</script>\n\n<style scoped>\n.back img {\n margin-top: 12px;\n}\n.title {\n font-size: 15px;\n}\n.home{\n height: 100vh;\n position: relative;\n}\n</style>"]}]}