1.0.5 • Published 2 years ago

vue-ebgnav v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

vue-plugin

vue-ebgnav

Build Setup

# 安装
npm install vue-ebgnav --save




#vue项目 main.js引入 
import ebgnav from 'vue-ebgnav';

vue.use(ebgnav);



# 渲染导航
loaderEbgNav 用于完整的渲染导航, 此方法返回Promise对象,
接受三个参数 navurl地址 router路由完整的配置,currentPath当前的访问路由path。


## app.vue 监听路由调用 
.vue  this.$loaderEbgNav(navUrl, router, currentPath)

#在router.beforeEach中调用 currentPath 为to.parh
.js  Vue.prototype.$loaderEbgNav(navUrl, router, currentPath)


catch 中处理加载失败的信息,可以加载默认导航。有比较完整的err信息

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago