Citation.vue 1.24 KB
Newer Older
shabai517's avatar
shabai517 committed
1 2
<template>
    <div class="submit-data-container">
3
        <div class="panel nav"><NavBar/></div>
shabai517's avatar
shabai517 committed
4 5 6 7 8 9
        <div class="markdown-wrapper">
            <vue-markdown class="markdown-body" :source="source"></vue-markdown>
        </div>
    </div>
</template>
<script>
10
    import NavBar from '@/components/landingpage/Nav'
shabai517's avatar
shabai517 committed
11
    import store from "@/store/store.js"
shabai517's avatar
shabai517 committed
12 13 14 15
    export default {
        data () {
            return {
                source: '',
shabai517's avatar
shabai517 committed
16
                markdownURL: this.$store.state.baseURL + '/static/markdown/citationPage/content.md',
shabai517's avatar
shabai517 committed
17 18 19
            }
        },
        components: {
20
            NavBar,
shabai517's avatar
shabai517 committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
        },
        methods:{
            markdownQuery(){
                this.$http
                  .get(this.markdownURL)
                  .then(function(res){
                    console.log(res);
                    this.source = res.body;
                  },function(err){
                   
                  }); 
            }
        },
        mounted:function(){
            this.markdownQuery();
        }
    }
</script>
<style>
 
</style>
<style scoped>
    .submit-data-container{
        width:100%;
        height: 100%;
    }
    .markdown-wrapper{
        width: 80%;
        margin: 0 auto;
        padding: 90px 0;
    }
</style>