32 行
630 B
Vue
32 行
630 B
Vue
|
<template>
|
||
|
<div class="container">
|
||
|
<div class="row">
|
||
|
<div class="col-md-12">
|
||
|
{{ description }}
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
name: 'entry-description',
|
||
|
data: function () {
|
||
|
return {
|
||
|
id: 1,
|
||
|
description: ''
|
||
|
}
|
||
|
},
|
||
|
created: function () {
|
||
|
axios.get('/api/rpc/file/getfiledescription/' + this.id).then(data => {
|
||
|
this.description = data.data[0].description;
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style>
|
||
|
.col {
|
||
|
text-align: center;
|
||
|
}
|
||
|
</style>
|