出现Unexpected token, expected ","报错原因

运行代码时候出现以下报错

erchantsList.vue: Unexpected token, expected "," (66:2)
09:45:49.891   64 |             this.endDate = e.endDate
09:45:49.891   65 |         }
09:45:49.891 > 66 |         selected(name){
09:45:49.891      |         ^
09:45:49.891   67 |             this.active = name;
09:45:49.891   68 |         }
09:45:49.891   69 |     }

报错原因,函数之间缺少逗号,65行}后添加,即可

原文地址:https://www.cnblogs.com/luoshaohan/p/14889861.html