refactor: export

This commit is contained in:
xiaojunnuo
2021-02-09 18:05:01 +08:00
parent a9b6e87249
commit c3e374e6e5
8 changed files with 52 additions and 23 deletions
@@ -2,7 +2,6 @@ import os from 'os'
export default {
join (...dirs) {
const url = new URL('../' + dirs.join('/'), import.meta.url)
console.log('url', url)
let path = url.pathname
if (os.type() === 'Windows_NT') {
path = path.substring(1)