今天敲代码出了一个bug:
Syntax Error: D:\project\零一电科\技术资料\若依系统\RuoYi-Vue-master\ruoyi-ui\src\views\project\index.vue: Missing semicolon. (67:20)
65 | },
66 | mounted(){
> 67 | goDetails(id){
| ^
68 | this.$router.push({
69 | path: '/article/' + id
70 | })
at parser.next (<anonymous>)
at normalizeFile.next (<anonymous>)
at run.next (<anonymous>)
at run.next (<anonymous>)
at transform.next (<anonymous>)
起因是我在goDetails(id)定义了一个方法,就出现了 Missing semicolon的错误
mounted(){ goDetails(id){ this.$router.push({ path: '/article/' + id }) } }