return url with, fix ffplayout#336
This commit is contained in:
parent
b8f56638f4
commit
3589257e43
@ -46,7 +46,13 @@ export const stringFormatter = () => {
|
||||
function filename(path: string) {
|
||||
if (path) {
|
||||
const pathArr = path.split('/')
|
||||
return pathArr[pathArr.length - 1]
|
||||
const name = pathArr[pathArr.length - 1]
|
||||
|
||||
if (name) {
|
||||
return name
|
||||
} else {
|
||||
return path
|
||||
}
|
||||
} else {
|
||||
return ''
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user