Skip to content

TalkingData/vue-router-gray

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-router-gray

基于vue-router的灰度发布策略

使用

import vueRouterGray from 'vue-router-gray';
const router = new VueRouter({});
vueRouterGray(router, {
  check(params) {
    /*{
      protocol: location.protocol,
      host: location.host,
      path: location.pathname,
      search: location.search,
      hash: location.hash,
    }*/
    return new Promise((done) => {
      setTimeout(() => done({
        grayUrl: 'https://xxxx.com/gray/xxx'
      }), 400);
    });
  },
});

About

基于vue-router的灰度发布策略

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%