mo49
6/21/2019 - 6:28 AM

GetAbsolutePath.md

絶対パスを取得する

<script>
export default {
  computed: {
    absolutePath () {
      return `${process.env.baseUrl}${this.$router.history.base}${this.$route.path}`
    },
  }
}
</script>

cf. https://qiita.com/amishiro/items/9d7ca6b239f604a40424