Skip to content
Snippets Groups Projects
Select Git revision
  • 06766f7532d2a4e2287a752ba4d3902c0b09a737
  • master default protected
2 results

app2

Blame
  • Board.vue 972 B
    <!--활동일지 게시판에서 게시글 눌렀을 때-->
    <template>
        <div class="board">
        <NavClub id="navClub"></NavClub>
            제목: {{board[0].title}}<br>
            내용: {{board[0].content}}<br>
            글쓴이: {{board[0].writer}}<br>
            작성 날짜: {{board[0].date}}<br>
        </div>
    </template>
    
    <script>
    import axios from "axios"
    import NavClub from '@/components/NavClub.vue'
    export default {
        components: {
            'NavClub': NavClub
        },
        data(){
            return{
                club:[],
                board:[]
            }
        },
        async created(){
            let id = this.$route.params.clubId;
            const res = await this.$http.get(`http://jnhonlinux.ddns.net:3000/club/${id}`)
                this.club = res.data.result
            let bid = this.$route.params.boardId;
            const board = await this.$http.get(`http://jnhonlinux.ddns.net:3000/activityLog/one/${id}/${bid}`)
                this.board = board.data.result
        }
        
    }
    </script>