设置=>用户代码片段=>vue.json
{
"Print to console": {
"prefix": "vue",
"body": [
"<!-- ",
" author:***",
" page:***",
"-->",
"<template>",
" <div class></div>",
"</template>",
" ",
"<script>",
"//import * from '@/*/*'",
"export default {",
" components: {},",
" data() {",
" return {}",
" },",
" watch: {},",
" created() {},",
" methods() {}",
"}",
"</script>",
" ",
"<style scoped>",
"</style>"
],
"description": "Log output to console"
}
}
页面
<!--
author:***
page:首页页面
-->
<template>
<div class="home">首页</div>
</template>
<script>
//import * from '@/*/*'
export default {
components: {},
data() {
return {}
},
watch: {},
created() {},
methods: {}
}
</script>
<style scoped>
</style>