fix(nimbus-service-layout): not compatible with vue-router under 3.1

This commit is contained in:
07akioni 2020-03-23 17:07:29 +08:00
parent 040b4a7465
commit 19a79d37c4
3 changed files with 11 additions and 1 deletions

View File

@ -1,4 +1,8 @@
# CHANGELOG
## 1.0.2 (2020-03-23)
### Fixes
- `n-nimbus-service-layout` (deprecated) doesn't deal with the compatibility of Vue Router(under 3.1)'s `push` method.
## 1.0.1 (2020-03-21)
### Features
- Add `'bar'` & `'arrow-circle'` on `show-trigger` prop of `n-layout-sider`.

View File

@ -1,4 +1,8 @@
# CHANGELOG
## 1.0.2 (2020-03-23)
### Fixes
- `n-nimbus-service-layout` (deprecated) 没有兼容 Vue Router(3.1版本以下) `push` 方法的返回值
## 1.0.1 (2020-03-21)
### Features
- `n-layout-sider``show-trigger` 增加了 `'bar'` & `'arrow-circle'` 选项

View File

@ -148,7 +148,9 @@ export default {
on: {
click: () => {
if (this.$router && item.path) {
this.$router.push(item.path).catch(() => {})
Promise.resolve(
this.$router.push(item.path)
).catch(() => {})
}
}
}