yingyangdetail.vue
659 字节
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<template>
<div class="containerbox"></div>
</template>
<script>
export default {
data() {
return {
id: ''
}
},
methods: {
getdetail() {
let that = this;
var url = "/api/index/knowledge_detail";
let param = {
id: that.id
};
that.$axios
.post(url, param)
.then(function (res) {
console.log(res);
})
.catch(function (err) {
console.log(err);
});
}
},
created() {
this.id = this.$route.query.id;
this.getdetail()
}
}
</script>
<style scoped>
.containerbox {
padding: 0.32rem;
box-sizing: border-box;
}
</style>