27 lines
348 B
Vue
27 lines
348 B
Vue
|
<template>
|
||
|
<div>
|
||
|
<pre class="json">{{ json }}</pre>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
computed: {
|
||
|
json: () => {
|
||
|
const a = {
|
||
|
status: 200,
|
||
|
message: 'ok',
|
||
|
}
|
||
|
return JSON.stringify(a, null, 2)
|
||
|
},
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style lang="scss">
|
||
|
.json {
|
||
|
margin: 1em 2em;
|
||
|
color: #ffffff;
|
||
|
}
|
||
|
</style>
|