vue2-client 1.4.18 → 1.4.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
- **1.4.18 -2022-09-28 @江超**
4
+ **1.4.18 - 1.4.19 -2022-09-28 @江超**
5
5
  - 功能修改:
6
6
  - V4登录获取路由提取到后端处理
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.4.18",
3
+ "version": "1.4.19",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -240,7 +240,7 @@ export default {
240
240
  let matches = this.$route.matched
241
241
  const route = matches[matches.length - 1]
242
242
  let chose = this.routesMap[route.path]
243
- if (chose.meta && chose.meta.highlight) {
243
+ if (chose && chose.meta && chose.meta.highlight) {
244
244
  chose = this.routesMap[chose.meta.highlight]
245
245
  const resolve = this.$router.resolve({ path: chose.fullPath })
246
246
  matches = (resolve.resolved && resolve.resolved.matched) || matches