Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
online-edu-admin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
online-edu
online-edu-admin
Commits
30087f9f
Commit
30087f9f
authored
Jul 22, 2021
by
lixin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传系列课程时,填写的标题未生效问题
parent
2a2e5095
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
detail.vue
src/views/biz/course/detail.vue
+11
-0
vue.config.js
vue.config.js
+1
-1
No files found.
src/views/biz/course/detail.vue
View file @
30087f9f
...
@@ -742,6 +742,7 @@ export default {
...
@@ -742,6 +742,7 @@ export default {
title
:
`确认要删除
${
video
.
name
?
video
.
name
:
""
}
吗?`
,
title
:
`确认要删除
${
video
.
name
?
video
.
name
:
""
}
吗?`
,
content
:
"删除操作同时会删除已经上传的视频文件"
,
content
:
"删除操作同时会删除已经上传的视频文件"
,
onOk
()
{
onOk
()
{
if
(
video
.
id
!=
undefined
){
deleteChaper
(
video
.
id
).
then
((
resp
)
=>
{
deleteChaper
(
video
.
id
).
then
((
resp
)
=>
{
if
(
resp
.
resp_code
===
200
)
{
if
(
resp
.
resp_code
===
200
)
{
self
.
videoSeries
.
forEach
((
item
,
index
)
=>
{
self
.
videoSeries
.
forEach
((
item
,
index
)
=>
{
...
@@ -752,6 +753,14 @@ export default {
...
@@ -752,6 +753,14 @@ export default {
});
});
}
}
});
});
}
else
if
(
video
.
videoId
!=
undefined
){
self
.
videoSeries
.
forEach
((
item
,
index
)
=>
{
console
.
log
(
item
,
video
);
if
(
item
.
videoId
===
video
.
videoId
)
{
self
.
videoSeries
.
splice
(
index
,
1
);
}
});
}
},
},
onCancel
()
{},
onCancel
()
{},
});
});
...
@@ -1107,7 +1116,9 @@ export default {
...
@@ -1107,7 +1116,9 @@ export default {
beforeVideoUpload
(
file
)
{
beforeVideoUpload
(
file
)
{
const
{
type
}
=
file
;
const
{
type
}
=
file
;
const
title
=
file
.
name
.
substring
(
0
,
file
.
name
.
indexOf
(
"."
));
const
title
=
file
.
name
.
substring
(
0
,
file
.
name
.
indexOf
(
"."
));
if
(
this
.
video
.
title
==
undefined
||
this
.
video
.
title
==
''
){
this
.
video
.
title
=
title
;
this
.
video
.
title
=
title
;
}
if
(
type
.
startsWith
(
"video"
))
{
if
(
type
.
startsWith
(
"video"
))
{
return
true
;
return
true
;
}
else
{
}
else
{
...
...
vue.config.js
View file @
30087f9f
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* https://cli.vuejs.org/zh/config/#%E7%9B%AE%E6%A0%87%E6%B5%8F%E8%A7%88%E5%99%A8
* https://cli.vuejs.org/zh/config/#%E7%9B%AE%E6%A0%87%E6%B5%8F%E8%A7%88%E5%99%A8
*
*
*/
*/
const
url
=
'http://
192.168.10.14:9090
'
const
url
=
'http://
edu.qkdata.com:10081
'
// 基础路径,发布前修改这里,当前配置打包出来的资源都是相对路径
// 基础路径,发布前修改这里,当前配置打包出来的资源都是相对路径
let
publicPath
=
'/admin'
let
publicPath
=
'/admin'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment