Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2025-03-27 13:53:34 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dfe0643b3e995ab5d8fd1d4077e903437f9aa4be
dfe0643b
1 parent
7033c4ce
fix: 调整删除cookie的时机以优化表单提交流程
在表单成功提交后立即删除cookie,避免未完成表单功能时cookie被错误删除
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/views/index.vue
src/views/index.vue
View file @
dfe0643
<!--
* @Date: 2022-07-18 10:22:22
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-0
2-25 11:48:35
* @LastEditTime: 2025-0
3-27 13:53:23
* @FilePath: /data-table/src/views/index.vue
* @Description: 首页
-->
...
...
@@ -1004,6 +1004,8 @@ const onRemove = (value) => { // 处理组件删除事件回调, 数据结构是
const submitStatus = ref(false); // 表单提交按钮状态
const successHandle = () => { // 表单成功提交后续操作
// 删除存在cookie, 提交成功后删除
Cookies.remove($route.query.code);
//在 iframe 中调用父页面中定义的变量 - Doris需要自由控制
let getChildVal = parent.parent.getChildVal;
if (getChildVal) {
...
...
@@ -1024,8 +1026,6 @@ const successHandle = () => { // 表单成功提交后续操作
},
});
}
// 删除存在cookie, 未完成的表单功能
Cookies.remove($route.query.code);
}
const onSubmit = async (values) => { // 表单提交回调
...
...
Please
register
or
login
to post a comment