add global filter
This commit is contained in:
parent
6856da1aa4
commit
68cbc58b75
@ -9,3 +9,12 @@ Vue.filter('toMin', function (sec) {
|
||||
return ''
|
||||
}
|
||||
})
|
||||
|
||||
Vue.filter('filename', function (path) {
|
||||
if (path) {
|
||||
const pathArr = path.split('/')
|
||||
return pathArr[pathArr.length - 1]
|
||||
} else {
|
||||
return ''
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user