浏览代码

返回跳转指定路由
字典详情,课程详情,值班详情

liuyang 5 年之前
父节点
当前提交
848c6fb63c

+ 1 - 1
frontend_web/src/views/course/detail/index.vue

@@ -392,7 +392,7 @@ export default {
       this.doRefresh()
     },
     back () { // 返回上一页
-      this.$router.go(-1)
+        this.$router.push({path:'/course'})
     },
     // 列表排序功能
     orderby (column) {

+ 6 - 4
frontend_web/src/views/duty/detail/index.vue

@@ -75,7 +75,7 @@
           <el-col :span="2">
             <el-button size="mini"
                        type="warning"
-                       @click="closePage()">关闭</el-button>
+                       @click="back()">返回</el-button>
           </el-col>
         </el-row>
       </el-form>
@@ -466,9 +466,11 @@ export default {
       'close'
     ]),
     // 关闭
-    closePage () {
-      let tagName = this.current
-      this.close({ tagName })
+    back () {
+      this.$router.push({path:'/duty'})
+
+      // let tagName = this.current
+      // this.close({ tagName })
     }
   }
 }

+ 2 - 1
frontend_web/src/views/sysadmin/item_detail/index.vue

@@ -292,7 +292,8 @@ export default {
       this.doRefresh()
     },
     back () { // 返回上一页
-      this.$router.go(-1)
+      this.$router.push({path:'/sysadmin/item'})
+
     }
   }
 }