* 检查 hash 变化
(needCheckUrlChange)
| 378 | * 检查 hash 变化 |
| 379 | */ |
| 380 | $$endCheckHash(needCheckUrlChange) { |
| 381 | if (!this.$_allowCheck) return |
| 382 | |
| 383 | if ((needCheckUrlChange || (this.$_lastPathname === this.$_pathname && this.$_lastSearch === this.$_search)) && this.$_lastHash !== this.$_hash) { |
| 384 | this.$$trigger('hashchange', { |
| 385 | event: { |
| 386 | oldURL: this.$_lastHref, |
| 387 | newURL: this.href, |
| 388 | } |
| 389 | }) |
| 390 | } |
| 391 | |
| 392 | this.$_lastHash = '' |
| 393 | this.$_lastPathname = '' |
| 394 | this.$_lastSearch = '' |
| 395 | this.$_lastHref = '' |
| 396 | } |
| 397 | |
| 398 | /** |
| 399 | * 对外属性和方法 |
no test coverage detected