chore: add circle

This commit is contained in:
Henrique Dias
2018-02-01 14:43:54 +00:00
committed by GitHub
parent 1f4d0cc3cd
commit 0595638228
126 changed files with 293 additions and 354 deletions

12
src/utils/url.js Normal file
View File

@@ -0,0 +1,12 @@
function removeLastDir (url) {
var arr = url.split('/')
if (arr.pop() === '') {
arr.pop()
}
return arr.join('/')
}
export default {
removeLastDir: removeLastDir
}