Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
legobackend
/
lego-manage-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
016051c7
authored
2025-06-05 16:46:59 +0800
by
yzj
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
8e36b466
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
src/views/legao/course/index.vue
src/views/legao/course/index.vue
View file @
016051c
...
...
@@ -256,7 +256,7 @@ function handleEdit (row) {
form
:
{
...
row
,
type
:
row
.
type
.
split
(
'、'
),
canPack
:
row
.
canPack
||
'0'
// 确保canPack有值,如果为null或undefined则默认为'0'
canPack
:
row
.
canPack
?
String
(
row
.
canPack
)
:
'0'
// 将数字转换为字符串
}
}
console
.
log
(
'编辑表单数据:'
,
showForm
.
value
.
form
)
// 添加日志查看数据
...
...
@@ -290,7 +290,6 @@ function submitForm(type) {
...
showForm
.
value
.
form
,
type
:
''
}
console
.
log
(
showForm
.
value
.
form
);
if
(
showForm
.
value
.
form
?.
type
===
undefined
||
showForm
.
value
.
form
?.
type
==
''
){
proxy
.
$modal
.
alert
(
'搭建类型不能为空'
);
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment