Przeglądaj źródła

修改表单返回错误,忘写this

11wqe1 4 tygodni temu
rodzic
commit
2b9a594452
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/components/pages/test/add/addTest.vue

+ 1 - 1
src/components/pages/test/add/addTest.vue

@@ -124,7 +124,7 @@ export default {
                 })
                 .then(() => {
                   console.log(this.back)
-                        if (gotype) return this.$router.go(-1)
+                        if (this.gotype) return this.$router.go(-1)
 
                         if(!this.back){
                           this.goTo(