index.vue 368 B

1234567891011121314151617181920212223
  1. <template>
  2. <el-upload
  3. class="upload-demo"
  4. action="/api/kd-resource/oss/endpoint/put-file-attach"
  5. :on-change="handleChange"
  6. :file-list="fileList">
  7. <el-button size="small" type="primary">点击上传</el-button>
  8. </el-upload>
  9. </template>
  10. <script>
  11. export default{
  12. data(){
  13. return {
  14. fileList: []
  15. }
  16. },
  17. methods: {
  18. handleChange(){
  19. }
  20. }
  21. }
  22. </script>