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
e21c59d6
authored
2025-06-05 14:52:54 +0800
by
yzj
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
07f9007a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
7 deletions
src/views/legao/course/index.vue
src/views/legao/course/index.vue
View file @
e21c59d
...
...
@@ -275,8 +275,7 @@ function handleDel(row) {
function
submitForm
(
type
)
{
const
data
=
{
...
showForm
.
value
.
form
,
type
:
''
,
packId
:
0
type
:
''
}
console
.
log
(
showForm
.
value
.
form
);
if
(
showForm
.
value
.
form
?.
type
===
undefined
||
showForm
.
value
.
form
?.
type
==
''
){
...
...
@@ -284,11 +283,6 @@ function submitForm(type) {
}
else
{
data
.
type
=
showForm
.
value
.
form
?.
type
.
join
(
'、'
)
// 确保packId被保存
if
(
showForm
.
value
.
form
?.
packId
)
{
console
.
log
(
showForm
.
value
.
form
.
packId
);
data
.
packId
=
showForm
.
value
.
form
.
packId
}
const
fun
=
showForm
.
value
.
form
?.
id
?
editCourse
:
addCourse
fun
(
data
).
then
(
res
=>
{
// console.log(res);
...
...
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