1. 设置注释作者名字 /** * @Author CQY * @Date ${DATE} ${TIME} * @Version 1.0 **/ 2. 创建模板 3. 代码快捷键设置 this.$http({ url: this.$http.adornUrl(''), method: 'get', params: this.$http.adornParams({ }) }).then(({data}) => { console.log("成功获取到菜单数据" ,data); }) File | Settings | Edit | Livetemplates