WYB
2021-03-22 91b8cdad021ab052e4991f3d41834a6f0ddc36b8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<template>
    <div>我是测试的第一个页面. name is {{ msg }}</div>
</template>
 
<script>
    import axios from 'axios';
 
    export default {
        name: "TestOne",
        data(){
            return{
                msg:''
            }
        },
        mounted(){
            let that=this;
            axios.post('/api/Values/TestPostPara?name=anson zhang', {})
                .then(res => {
                    that.msg=res.data.name
                })
                .catch(err => {
                    console.error(err);
                })
        }
    }
</script>
 
<style scoped>
 
</style>