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
2022-11-22 18:00:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
02d4940e2cc427868a59458e1f9506749807bd05
02d4940e
1 parent
7aa51b03
fix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
7 deletions
src/views/index.vue
src/views/index.vue
View file @
02d4940
<!--
* @Date: 2022-07-18 10:22:22
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-11-22 17:
40:19
* @LastEditTime: 2022-11-22 17:
59:56
* @FilePath: /data-table/src/views/index.vue
* @Description: 首页
-->
...
...
@@ -104,12 +104,6 @@ const rate_picker = ref(null);
const video = ref(null);
const onSubmit = async (values) => {
// 不是默认输入值类型的控件,需要重构结构,把相应key/value绑定进去
formData.value.forEach((item) => {
if (item.component_props.name === "video") {
postData.value = _.assign(postData.value, { [item.key]: item.value });
}
});
// 合并自定义字段到提交表单字段
postData.value = _.assign(postData.value, values);
// 检查非表单输入项
...
...
Please
register
or
login
to post a comment