Showing
1 changed file
with
2 additions
and
2 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-07-18 10:22:22 | 2 | * @Date: 2022-07-18 10:22:22 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2025-02-13 10:32:51 | 4 | + * @LastEditTime: 2025-02-13 10:38:24 |
| 5 | * @FilePath: /data-table/src/views/index.vue | 5 | * @FilePath: /data-table/src/views/index.vue |
| 6 | * @Description: 首页 | 6 | * @Description: 首页 |
| 7 | --> | 7 | --> |
| ... | @@ -966,7 +966,7 @@ const successHandle = () => { // 表单成功提交后续操作 | ... | @@ -966,7 +966,7 @@ const successHandle = () => { // 表单成功提交后续操作 |
| 966 | window.location.href = successInfo.value.commit_url; | 966 | window.location.href = successInfo.value.commit_url; |
| 967 | } else { | 967 | } else { |
| 968 | // 把成功信息写进cookies | 968 | // 把成功信息写进cookies |
| 969 | - Cookies.set(`form_${successInfo.value.id}_s_i`, JSON.stringify(successInfo.value)); | 969 | + Cookies.set(`form_${successInfo.value.id}_s_i`, JSON.stringify(successInfo.value), { expires: 1 }); |
| 970 | // 跳转成功页面 | 970 | // 跳转成功页面 |
| 971 | $router.push({ | 971 | $router.push({ |
| 972 | path: "/success", | 972 | path: "/success", | ... | ... |
-
Please register or login to post a comment