hookehuyr

fix

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