浏览代码

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

11wqe1 4 周之前
父节点
当前提交
2b9a594452
共有 1 个文件被更改,包括 1 次插入1 次删除
  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(