Selaa lähdekoodia

docs: update outdated link and redirects (#1313)

* docs: update outdated guide of simple store pattern

* docs: add redirect for old intro page
katashin 7 vuotta sitten
vanhempi
commit
4d5af051dd
2 muutettua tiedostoa jossa 6 lisäystä ja 1 poistoa
  1. 5 0
      docs/.vuepress/public/_redirects
  2. 1 1
      docs/README.md

+ 5 - 0
docs/.vuepress/public/_redirects

@@ -1,16 +1,21 @@
 # redirect old urls to root
 # redirect old urls to root
 
 
 /en/api.html  /api/
 /en/api.html  /api/
+/en/intro.html /en/guide/
 /en/* /guide/:splat
 /en/* /guide/:splat
 
 
 /zh-cn/api.html  /zh/api/
 /zh-cn/api.html  /zh/api/
+/zh-cn/intro.html /zh/guide/
 /zh-cn/* /zh/guide/:splat
 /zh-cn/* /zh/guide/:splat
 
 
 /ja/api.html  /ja/api/
 /ja/api.html  /ja/api/
+/ja/intro.html /ja/guide/
 /ja/* /ja/guide/:splat
 /ja/* /ja/guide/:splat
 
 
 /ru/api.html  /ru/api/
 /ru/api.html  /ru/api/
+/ru/intro.html /ru/guide/
 /ru/* /ru/guide/:splat
 /ru/* /ru/guide/:splat
 
 
 /kr/api.html  /kr/api/
 /kr/api.html  /kr/api/
+/kr/intro.html /kr/guide/
 /kr/* /kr/guide/:splat
 /kr/* /kr/guide/:splat

+ 1 - 1
docs/README.md

@@ -58,6 +58,6 @@ This is the basic idea behind Vuex, inspired by [Flux](https://facebook.github.i
 
 
 Although Vuex helps us deal with shared state management, it also comes with the cost of more concepts and boilerplate. It's a trade-off between short term and long term productivity.
 Although Vuex helps us deal with shared state management, it also comes with the cost of more concepts and boilerplate. It's a trade-off between short term and long term productivity.
 
 
-If you've never built a large-scale SPA and jump right into Vuex, it may feel verbose and daunting. That's perfectly normal - if your app is simple, you will most likely be fine without Vuex. A simple [global event bus](https://vuejs.org/v2/guide/components.html#Non-Parent-Child-Communication) may be all you need. But if you are building a medium-to-large-scale SPA, chances are you have run into situations that make you think about how to better handle state outside of your Vue components, and Vuex will be the natural next step for you. There's a good quote from Dan Abramov, the author of Redux:
+If you've never built a large-scale SPA and jump right into Vuex, it may feel verbose and daunting. That's perfectly normal - if your app is simple, you will most likely be fine without Vuex. A simple [store pattern](https://vuejs.org/v2/guide/state-management.html#Simple-State-Management-from-Scratch) may be all you need. But if you are building a medium-to-large-scale SPA, chances are you have run into situations that make you think about how to better handle state outside of your Vue components, and Vuex will be the natural next step for you. There's a good quote from Dan Abramov, the author of Redux:
 
 
 > Flux libraries are like glasses: you’ll know when you need them.
 > Flux libraries are like glasses: you’ll know when you need them.