.Vue 文件 ES6 语法 webstorm 中的一个识别Bug

webstorm 2017 版本中即便安装了vue template file 设置了 js 语言为 es6 语法仍旧会出现识别不了划线的状况,苦寻好久,最后解决方式以下javascript

 

<script type="text-ecmascript-6">
    export default{
        data(){
            return{
                msg: ''
            }
        },
        components:{
        }
    }
</script>

  

添加  type 类型 指明为: text-ecmascript-6  亲测有效。vue

相关文章
相关标签/搜索