(path, qs, file, next, vm, first)
| 5 | import { get } from './ajax'; |
| 6 | |
| 7 | function loadNested(path, qs, file, next, vm, first) { |
| 8 | path = first ? path : path.replace(/\/$/, ''); |
| 9 | path = getParentPath(path); |
| 10 | |
| 11 | if (!path) { |
| 12 | return; |
| 13 | } |
| 14 | |
| 15 | get( |
| 16 | vm.router.getFile(path + file) + qs, |
| 17 | false, |
| 18 | vm.config.requestHeaders |
| 19 | ).then(next, _ => loadNested(path, qs, file, next, vm)); |
| 20 | } |
| 21 | |
| 22 | /** @typedef {import('../Docsify').Constructor} Constructor */ |
| 23 |
no test coverage detected
searching dependent graphs…