<template>
  <a :href="base+'/download/'+module+'/'+param" download><slot/></a>
</template>

<script>
export default {
  setup: function() {
    const base = window.location.protocol + "//" + window.location.hostname + ':' + process.env.VUE_APP_API_PORT

    return {base}
  },
  props: {
    param: {
      type: String,
      required: true
    },
    module: {
      type: String,
      required: true
    }
  }
}
</script>
