()
| 258 | } |
| 259 | |
| 260 | initFetch() { |
| 261 | const { loadSidebar } = this.config; |
| 262 | |
| 263 | // Server-Side Rendering |
| 264 | if (this.rendered) { |
| 265 | const activeEl = getAndActive(this.router, '.sidebar-nav', true, true); |
| 266 | if (loadSidebar && activeEl) { |
| 267 | activeEl.parentNode.innerHTML += window.__SUB_SIDEBAR__; |
| 268 | } |
| 269 | |
| 270 | this._bindEventOnRendered(activeEl); |
| 271 | this.$resetEvents(); |
| 272 | this.callHook('doneEach'); |
| 273 | this.callHook('ready'); |
| 274 | } else { |
| 275 | this.$fetch(_ => this.callHook('ready')); |
| 276 | } |
| 277 | } |
| 278 | }; |
| 279 | } |
no test coverage detected