Browse Source

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

11wqe1 4 weeks ago
parent
commit
2b9a594452
1 changed files with 1 additions and 1 deletions
  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(() => {
                 .then(() => {
                   console.log(this.back)
                   console.log(this.back)
-                        if (gotype) return this.$router.go(-1)
+                        if (this.gotype) return this.$router.go(-1)
 
 
                         if(!this.back){
                         if(!this.back){
                           this.goTo(
                           this.goTo(