hookehuyr

fix

1 /* 1 /*
2 * @Date: 2022-05-26 13:57:28 2 * @Date: 2022-05-26 13:57:28
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-11-21 17:08:22 4 + * @LastEditTime: 2024-11-21 17:17:16
5 * @FilePath: /data-table/src/router.js 5 * @FilePath: /data-table/src/router.js
6 * @Description: 文件描述 6 * @Description: 文件描述
7 */ 7 */
...@@ -58,7 +58,8 @@ router.beforeEach((to, from, next) => { ...@@ -58,7 +58,8 @@ router.beforeEach((to, from, next) => {
58 title: '温馨提示', 58 title: '温馨提示',
59 message: '您还未完成的表单,是否继续?', 59 message: '您还未完成的表单,是否继续?',
60 confirmButtonColor: styleColor.baseColor, 60 confirmButtonColor: styleColor.baseColor,
61 - cancelButtonText: '删除' 61 + cancelButtonText: '删除',
62 + closeOnPopstate: false,
62 }) 63 })
63 .then(() => { // 通过后把数据绑定上去 64 .then(() => { // 通过后把数据绑定上去
64 next(); 65 next();
...@@ -67,6 +68,8 @@ router.beforeEach((to, from, next) => { ...@@ -67,6 +68,8 @@ router.beforeEach((to, from, next) => {
67 Cookies.remove(to.query.code); 68 Cookies.remove(to.query.code);
68 next(); 69 next();
69 }); 70 });
71 + } else {
72 + next();
70 } 73 }
71 } else { 74 } else {
72 next() 75 next()
......