在Vue中出现“不允许尾随空格”1、在vscode中转到设置2、在设置搜索栏中 type "trim trailing whitespace"3、在下面选中 "trim trailing whitespace" option.4、重新启动vscode。