b972db24 by lihua

合约详情页面不提示尚未保存

1 parent 742f7c4a
...@@ -106,12 +106,16 @@ const routes: RouteRecordRaw[] = [ ...@@ -106,12 +106,16 @@ const routes: RouteRecordRaw[] = [
106 }, 106 },
107 beforeEnter: (to, from) => { 107 beforeEnter: (to, from) => {
108 if (to.query.type == 'consult') { 108 if (to.query.type == 'consult') {
109 to.meta.editPage = true;
109 to.meta.title = `合约协商-${to.query.name}`; 110 to.meta.title = `合约协商-${to.query.name}`;
110 } else if (to.query.type == 'sign') { 111 } else if (to.query.type == 'sign') {
112 to.meta.editPage = true;
111 to.meta.title = `合约签署-${to.query.name}`; 113 to.meta.title = `合约签署-${to.query.name}`;
112 } else if (to.query.type == 'reject') { 114 } else if (to.query.type == 'reject') {
115 to.meta.editPage = true;
113 to.meta.title = `合约解除-${to.query.name}`; 116 to.meta.title = `合约解除-${to.query.name}`;
114 } else { 117 } else {
118 to.meta.editPage = false;
115 to.meta.title = `合约详情-${to.query.name}`; 119 to.meta.title = `合约详情-${to.query.name}`;
116 } 120 }
117 } 121 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!