在菜单中:
PhpStorm > Preferences > Languages & Frameworks > Javascript
你会看到一个框,上面写着:JavaScript语言版本.
您应该能够将选项更改为ECMAScript 6并apply.
也:
PhpStorm > Preferences > Editor > File Types Find ECMAScript 6 in the list and add *.vue to the registered patterns list. You could add it to the Javascript file type to for good measure.