mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-03-01 13:36:55 +08:00
fix(nimbus-service-layout): not compatible with vue-router under 3.1
This commit is contained in:
parent
040b4a7465
commit
19a79d37c4
@ -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`.
|
||||
|
@ -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'` 选项
|
||||
|
@ -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(() => {})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user