Explorar o código

变更审批跳转

laiguoran %!s(int64=5) %!d(string=hai) anos
pai
achega
9c733e5bb0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/controller/change_controller.js

+ 1 - 1
app/controller/change_controller.js

@@ -572,7 +572,7 @@ module.exports = app => {
                 if (!result) {
                     throw '审批失败';
                 }
-                ctx.redirect('/tender/' + changeData.tid + '/change');
+                ctx.redirect(ctx.request.header.referer);
             } catch (err) {
                 console.log(err);
                 ctx.redirect(ctx.request.header.referer);