refactor: 重构优化

This commit is contained in:
xiaojunnuo
2021-02-04 18:44:16 +08:00
parent a39dac4dbd
commit a25a15ca6e
59 changed files with 3903 additions and 967 deletions
+6
View File
@@ -0,0 +1,6 @@
export default {
join (...dirs) {
const url = new URL('../' + dirs.join('/'), import.meta.url)
return url.href.replace(/^file:\/\/\//, '').replace(/^file:\/\//, '')
}
}