{"id":291756,"date":"2019-07-07T21:00:45","date_gmt":"2019-07-07T21:00:45","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=291756"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=291756","title":{"rendered":"\u041c\u043e\u0449\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u0438 Vuex"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\u041c\u043e\u0442\u0438\u0432\u043e\u043c \u0434\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u043e\u0441\u043b\u0443\u0436\u0438\u043b\u0430 <a href=\"https:\/\/habr.com\/ru\/post\/458632\/\">\u0434\u0440\u0443\u0433\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f<\/a> \u043d\u0430 \u0442\u0435\u043c\u0443 \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u0438 <b>Vue<\/b> \u0438, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, <b>Vuex<\/b>. \u041a \u043c\u043e\u0435\u043c\u0443 \u0443\u0434\u0438\u0432\u043b\u0435\u043d\u0438\u044e \u044f \u043d\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u0442\u0430\u043c \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439, \u043f\u043e \u043c\u043e\u0435\u043c\u0443 \u043c\u043d\u0435\u043d\u0438\u044e, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0443\u0447\u0448\u0438\u043c \u0432 \u0441\u0432\u043e\u0435\u043c \u0440\u043e\u0434\u0435 \u00ab\u0442\u0438\u043f\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u043c\u00bb Vuex. \u041f\u043e\u0438\u0441\u043a \u043f\u043e \u0425\u0430\u0431\u0440\u0443, \u0434\u0430 \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043f\u043e \u0420\u0443\u043d\u0435\u0442\u0443 (\u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0438 \u0432 \u0430\u043d\u0433\u043b\u043e\u044f\u0437\u044b\u0447\u043d\u044b\u0445 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430\u0445 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0445\u043e\u0434\u0443 \u043d\u0430\u0439\u0442\u0438 \u043a\u0430\u043a\u0438\u0435-\u043b\u0438\u0431\u043e \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u044f), \u0443\u0432\u044b, \u043d\u0435 \u0434\u0430\u043b \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432. \u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u043c \u0440\u0430\u0437\u0431\u043e\u0440\u043e\u043c \u0438 \u043c\u043d\u043e\u0433\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u044b\u043c \u043c\u0430\u043d\u0443\u0430\u043b\u043e\u043c \u043f\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435, \u043d\u043e \u0441\u043a\u043e\u0440\u0435\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441 \u0432\u0430\u043c\u0438, \u0443\u0432\u0430\u0436\u0430\u0435\u043c\u044b\u0435 Vue-\u043d\u0438\u043d\u0434\u0437\u044f, \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043e \u0441\u0432\u043e\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h1>vuex-smart-module<\/h1>\n<p>  \u0423 \u043a\u043e\u0433\u043e \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438: <a href=\"https:\/\/github.com\/ktsn\/vuex-smart-module\">Github<\/a>.<\/p>\n<p>  \u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u044f, \u043a\u0430\u043a \u0432\u044b \u0443\u0441\u043f\u0435\u043b\u0438 \u0434\u043e\u0433\u0430\u0434\u0430\u0442\u044c\u0441\u044f, \u2014 \u044d\u0442\u043e \u043f\u043e\u043b\u043d\u043e\u0444\u043e\u0440\u043c\u0430\u0442\u043d\u043e\u0435 \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 Vuex \u0442\u0438\u043f\u0430\u043c\u0438. \u041a\u0430\u043a \u0432\u043d\u0443\u0442\u0440\u0438, \u0442\u0430\u043a \u0438 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432 \u0441\u0430\u043c\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u0445. \u041c\u043e\u0434\u0443\u043b\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u043a\u043e\u043d\u0442\u0440\u0438\u0431\u044c\u044e\u0442\u043e\u0440\u043e\u043c (<a href=\"https:\/\/github.com\/ktsn\">@ktsn<\/a>) \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a <a href=\"https:\/\/github.com\/vuejs\/vuex\">Vuex<\/a> \u0438 <a href=\"https:\/\/github.com\/vuejs\/vue-class-component\">vue-class-component<\/a>.<\/p>\n<h2>\u0412\u043e\u0434\u0430<\/h2>\n<p>  \u041f\u0440\u0438\u0437\u043d\u0430\u0442\u044c\u0441\u044f, \u043c\u043e\u0439 \u043f\u0443\u0442\u044c \u0432 <b>Typescript<\/b> \u043d\u0430\u0447\u0430\u043b\u0441\u044f \u0435\u0449\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u0434\u0430\u0432\u043d\u043e, \u0432 \u0442.\u0447. \u0438 \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u0448\u0442\u0443\u043a\u0430\u043c\u0438 \u043a\u0430\u043a \u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440\u044b, \u043f\u043e\u0442\u043e\u043c\u0443 \u043d\u0435 \u043c\u043e\u0433\u0443 \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0430\u043d\u0430\u043b\u043e\u0433\u0430\u043c\u0438. \u041c\u043e\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <a href=\"https:\/\/github.com\/championswimmer\/vuex-module-decorators\">vuex-module-decorators<\/a>) \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043b\u0438 \u043c\u0435\u043d\u044f \u043a \u0440\u0430\u0437\u043d\u044b\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432 \u0438\u0442\u043e\u0433\u0435 \u0442\u0430\u043a \u0438\u043b\u0438 \u0438\u043d\u0430\u0447\u0435 \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u043b\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e, \u0447\u0442\u043e \u043c\u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u0443\u0436\u043d\u043e (\u043b\u0438\u0431\u043e \u044f \u043f\u0440\u043e\u0441\u0442\u043e, \u043a\u0430\u043a \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c\u0441\u044f, \u043d\u0435 \u0443\u043c\u0435\u043b \u0438\u0445 \u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c). \u0421 <b>vuex-smart-module<\/b> \u043c\u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0432\u0435\u0437\u043b\u043e \u2014 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u0432 \u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u043b \u043f\u0440\u043e\u0435\u043a\u0442 (\u0438 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435) \u043d\u0430 Typescript. \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0435 \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0430 \u043a\u043e\u0434 \u0440\u0430\u0434\u0443\u0435\u0442 \u0433\u043b\u0430\u0437.<\/p>\n<h2>\u041f\u0440\u0438\u043c\u0435\u0440\u044b<\/h2>\n<p>  \u0423 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u0445\u043e\u0440\u043e\u0448\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0432\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0441\u043b\u0443\u0447\u0430\u0438 \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0432\u0430\u043c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u0442\u044c\u0441\u044f (\u0430 \u0435\u0441\u043b\u0438 \u043d\u0435\u0442 \u2014 \u0442\u043e \u0432 \u0442\u0435\u0441\u0442\u0430\u0445 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435, \u043d\u0435\u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u043e\u0435). \u041e\u0434\u043d\u0430\u043a\u043e, \u0447\u0442\u043e\u0431\u044b \u0445\u043e\u0442\u044c \u043a\u0430\u043a-\u0442\u043e \u0440\u0430\u0437\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u044e \u043a\u043e\u0434\u043e\u043c, \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u0430\u0440\u0443 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u00ab\u0438\u0437 \u0436\u0438\u0437\u043d\u0438\u00bb, \u0430 \u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 <i>\u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440\u0430\u043c\u0438<\/i> (\u0442\u0430\u043c \u0435\u0441\u0442\u044c \u043d\u044e\u0430\u043d\u0441).<\/p>\n<h3>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u044f<\/h3>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043c\u043e\u0434\u0443\u043b\u044c \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u043b\u0430\u0441\u0441\u043e\u0432. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043d\u0435\u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e \u043e\u0442\u043f\u0443\u0433\u0438\u0432\u0430\u044e\u0449\u0438\u043c, \u043d\u043e \u043f\u043e\u0432\u0435\u0440\u044c\u0442\u0435, \u043f\u0440\u0438\u0432\u044b\u043a\u0430\u0435\u0448\u044c \u0431\u044b\u0441\u0442\u0440\u043e.<\/p>\n<p>  <b>store\/root.ts<\/b><\/p>\n<pre><code class=\"javascript\">\/\/ \u0418\u043c\u043f\u043e\u0440\u0442 \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 import { Getters, Mutations, Actions, Module } from 'vuex-smart-module'  \/\/ \u0421\u0442\u0435\u0439\u0442 class RootState {   count = 1 }  \/\/ \u0413\u0435\u0442\u0442\u0435\u0440\u044b \/\/ \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u043a\u043b\u0430\u0441\u0441 \u0442\u0438\u043f\u0430\u043c\u0438 \u0438\u0437 RootState class RootGetters extends Getters&lt;RootState&gt; {   get double() {     \/\/ \u0423 \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0430 \u0433\u0435\u0442\u0442\u0435\u0440\u0430 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e `state`     return this.state.count * 2   }    get triple() {     \/\/ \u0414\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u0433\u0435\u0442\u0442\u0435\u0440\u043e\u0432 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e `getters`     return this.getters.double + this.state.count   } }  \/\/ \u041c\u0443\u0442\u0430\u0446\u0438\u0438 \/\/ \u0422\u0430\u043a \u0436\u0435 \u043a\u0430\u043a \u0438 \u0433\u0435\u0442\u0442\u0435\u0440\u044b, \u043a\u043b\u0430\u0441\u0441 \u043c\u0443\u0442\u0430\u0446\u0438\u0439 \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0435\u0442\u0441\u044f \u0442\u0438\u043f\u0430\u043c\u0438 RootState class RootMutations extends Mutations&lt;RootState&gt; {   increment(payload: number) {     \/\/ \u0423 \u043c\u0443\u0442\u0430\u0446\u0438\u0439 \u0442\u0430\u043a \u0436\u0435 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e `state`     this.state.count += payload   } }  \/\/ \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f \/\/ \u0417\u0434\u0435\u0441\u044c \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0435\u0442\u0441\u044f \u043a\u043b\u0430\u0441\u0441 \/\/ \u041d\u043e \u0435\u0441\u0442\u044c \u043e\u0434\u0438\u043d \u043d\u044e\u0430\u043d\u0441, \u043a\u043b\u0430\u0441\u0441 \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0442\u0438\u043f\u0430\u043c\u0438 \u044d\u0442\u043e\u0433\u043e \u0436\u0435 \u043a\u043b\u0430\u0441\u0441\u0430, \u044f\u0432\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0432 \u044d\u0442\u043e \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445 class RootActions extends Actions&lt;   RootState,   RootGetters,   RootMutations,   RootActions &gt; {   incrementAsync(payload: { amount: number; interval: number }) {     \/\/ \u0423 \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 `state`, `getters`, `commit` \u0438 `dispatch`      return new Promise(resolve =&gt; {       setTimeout(() =&gt; {         this.commit('increment', payload.amount)       }, payload.interval)     })   } }  \/\/ \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u043c\u043e\u0434\u0443\u043b\u044f export default new Module({   state: RootState,   getters: RootGetters,   mutations: RootMutations,   actions: RootActions })<\/code><\/pre>\n<p>  <\/p>\n<h3>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>  <b>\/store\/index.ts<\/b><\/p>\n<pre><code class=\"javascript\">import Vue from 'vue' import * as Vuex from 'vuex' import { createStore } from 'vuex-smart-module' import RootStore from '.\/root'  Vue.use(Vuex)  export const store = createStore(   RootStore,   {     strict: process.env.NODE_ENV !== 'production'   } ) <\/code><\/pre>\n<p>  <\/p>\n<h3>\u041c\u043e\u0434\u0443\u043b\u0438<\/h3>\n<p>  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0442\u043e\u043c\u0443, \u043a\u0430\u043a \u044d\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u043e\u0431\u044b\u0447\u043d\u043e\u043c Vuex. \u0418\u0445 \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0435 modules \u0443 RootStore:<\/p>\n<pre><code class=\"javascript\"> import FooStore from '.\/modules\/foo'  \/* \u2026 *\/  export default new Module({   state: RootState,   getters: RootGetters,   mutations: RootMutations,   actions: RootActions,   modules: {     FooStore   } }) <\/code><\/pre>\n<p>  <\/p>\n<h3>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430<\/h3>\n<p>  \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u0442\u043e\u0440\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u043a\u0430\u043a \u0447\u0435\u0440\u0435\u0437 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e this.$store, \u0442\u0430\u043a \u0438 \u0447\u0435\u0440\u0435\u0437 \u043c\u044d\u043f\u043f\u0438\u043d\u0433, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043e \u043c\u043d\u043e\u0433\u043e\u043c \u043f\u043e\u0445\u043e\u0436 \u043d\u0430 \u0442\u043e\u0442, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u0432\u043e Vuex:<\/p>\n<pre><code class=\"javascript\"> import Vue from 'vue'  \/\/ \u0418\u043c\u043f\u043e\u0440\u0442 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u0441\u0442\u043e\u0440\u0430 (\u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0438 \u0441 \u043b\u044e\u0431\u044b\u043c \u0434\u0440\u0443\u0433\u0438\u043c \u043c\u043e\u0434\u0443\u043b\u0435\u043c) \/\/ import FooStore from '@\/store\/modules\/foo' import RootStore from '@\/store\/root'  export default Vue.extend({   computed: RootStore.mapGetters(['double']),    methods: RootStore.mapActions({     incAsync: 'incrementAsync'   }),    created() {     console.log(this.double)     this.incAsync(undefined)   } })<\/code><\/pre>\n<p>  <\/p>\n<h3>\u041f\u0440\u0438\u0435\u043c\u044b<\/h3>\n<p>  <\/p>\n<h4>\u041f\u043e\u0434\u043b\u044e\u043a\u0447\u0435\u043d\u0438\u0435 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440\u043e\u0432 (<a href=\"https:\/\/github.com\/kaorun343\/vue-property-decorator\">vue-property-decorator<\/a>)<\/h4>\n<p>  <\/p>\n<pre><code class=\"javascript\">import { Vue, Component } from \"vue-property-decorator\"  \/\/ \u0418\u043c\u043f\u043e\u0440\u0442 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u0441\u0442\u043e\u0440\u0430 (\u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0438 \u0441 \u043b\u044e\u0431\u044b\u043c \u0434\u0440\u0443\u0433\u0438\u043c \u043c\u043e\u0434\u0443\u043b\u0435\u043c) \/\/ import FooStore from '@\/store\/modules\/foo' import RootStore from \"@\/store\/root\"  \/\/ \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u0441\u0435 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 Typescript, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u043a\u043b\u0430\u0441\u0441 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: const Mappers = Vue.extend({   computed: {     ...RootStore.mapGetters([\"double\"])   },   methods: {     ...RootStore.mapActions({       incAsync: 'incrementAsync'     })   } });  @Component export default class MyApp extends Mappers {   created() {     console.log(this.double)     this.incAsync(undefined)   } } <\/code><\/pre>\n<p>  <\/p>\n<h4>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u043c\u043e\u0434\u0443\u043b\u044f<\/h4>\n<p>  <b>\/store\/module\/bar.ts<\/b><\/p>\n<pre><code class=\"javascript\">import { Store } from 'vuex' import { Getters, Actions, Module, Context } from 'vuex-smart-module'  \/\/ \u0418\u043c\u043f\u043e\u0440\u0442 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f import FooStore from '.\/foo'  \/* \u2026 *\/  class BarGetters extends Getters {   \/\/ \u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430   foo!: Context&lt;typeof FooStore&gt;;    \/\/ \u0412\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u043e\u0434\u0443\u043b\u044f   $init(store: Store&lt;any&gt;): void {     \/\/ \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430     this.foo = FooStore.context(store)   }    get excited(): string {     return this.foo.state.value + '!' \/\/ -&gt; hello!   } }  \/* \u2026 *\/ <\/code><\/pre>\n<p>  <\/p>\n<h4>\u0421\u0431\u0440\u043e\u0441 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430<\/h4>\n<p>  \u0418\u043d\u043e\u0433\u0434\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u043d\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u044d\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e:<\/p>\n<pre><code class=\"javascript\">class FooState {   \/* ... *\/ }  class FooMutations extends Mutations&lt;FooState&gt; {   reset () {       const s = new FooState()       Object.keys(s).forEach(key =&gt; {         this.state[key] = s[key]       })   } }<\/code><\/pre>\n<p>  <\/p>\n<h2>\u0424\u0438\u043d\u0430\u043b<\/h2>\n<p>  \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u0432\u0430\u043c \u0431\u044b\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u043d\u0443 \u0438\u043b\u0438, \u043f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435, \u0432\u044b \u0443\u0437\u043d\u0430\u043b\u0438 \u043e\u0431 \u044d\u0442\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435. \u041a\u0442\u043e \u0437\u043d\u0430\u0435\u0442, \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 (\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438 \u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433 \u0442\u0435\u043a\u0443\u0449\u0438\u0445 \u043d\u0435 \u0437\u0430 \u0433\u043e\u0440\u0430\u043c\u0438?) \u0432\u044b \u043d\u0430\u0447\u043d\u0435\u0442\u0435, \u043a\u0430\u043a \u0438 \u044f, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c vuex-smart-module (\u0438\u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 Typescript \u0432 \u0446\u0435\u043b\u043e\u043c)? \u041b\u0438\u0447\u043d\u043e \u043c\u043e\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043d\u0430 Typescript \u0431\u044b\u043b \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u043e\u043b\u0435\u0437\u043d\u0435\u043d\u043d\u044b\u043c (\u0437\u0430 1.5-2 \u0433\u043e\u0434\u0430 \u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u043b\u0441\u044f \u0437\u0430 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043d\u0435\u0433\u043e \u0440\u0430\u0437\u0430 3-4 \u043c\u0438\u043d\u0438\u043c\u0443\u043c, \u043d\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u0443\u043f\u0438\u0440\u0430\u043b\u0441\u044f \u0432 \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043d\u0435\u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435. \u041c\u0435\u043d\u044f \u0447\u0430\u0441\u0442\u043e \u043f\u0440\u0435\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b\u043e \u043e\u0449\u0443\u0449\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043d\u0430 Typescript \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0432 2-3 \u0440\u0430\u0437\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0447\u0435\u043c \u0440\u0430\u043d\u044c\u0448\u0435, \u0442.\u043a. \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u00ab\u043f\u043e-\u0431\u044b\u0441\u0442\u0440\u043e\u043c\u0443 \u043d\u0430\u0431\u0440\u043e\u0441\u0430\u0442\u044c\u00bb. \u041d\u043e \u043e\u0434\u043d\u0430\u0436\u0434\u044b, \u043f\u0435\u0440\u0435\u0448\u0430\u0433\u043d\u0443\u0432 \u043d\u0430 \u00ab\u0441\u0432\u0435\u0442\u043b\u0443\u044e \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u0438\u00bb, \u044f \u043e\u0449\u0443\u0442\u0438\u043b \u0432\u0441\u044e \u043c\u043e\u0449\u044c \u0442\u0438\u043f\u043e\u0432 \u0438 \u0442\u043e, \u043a\u0430\u043a \u043e\u043d\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0438\u0442\u043e\u0433\u0435 \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u0447\u0442\u043e \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u0432\u0430\u0436\u043d\u043e, \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u043a\u043e\u0434\u0430 (\u043f\u043e\u0436\u0430\u043b\u0443\u0439, \u0432 \u0442\u0435 \u0436\u0435 \u0441\u0430\u043c\u044b\u0435 2-3 \u0440\u0430\u0437\u0430), \u0430 \u0442\u0430\u043a \u0436\u0435 \u043e\u0431\u043b\u0435\u0433\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0443\u044e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443.<\/p>\n<p>  P.S. \u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0437\u0432\u0435\u0437\u0434\u0443 \u044d\u0442\u043e\u043c\u0443 \u043c\u043e\u0434\u0443\u043b\u044e. \ud83d\ude42<\/p>\n<p>  <b>UPD:<\/b> \u041f\u0440\u0438\u043d\u043e\u0448\u0443 \u0433\u043b\u0443\u0431\u043e\u0447\u0430\u0439\u0448\u0438\u0435 \u0438\u0437\u0432\u0438\u043d\u0435\u043d\u0438\u044f \u0443\u0432\u0430\u0436\u0430\u0435\u043c\u043e\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u044f, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043e\u0441\u043a\u043e\u0440\u0431\u0438\u043b \u0441\u0432\u043e\u0438\u043c \u043f\u043e\u0441\u0442\u043e\u043c \u0438 \u0432\u044b\u043d\u0443\u0434\u0438\u043b \u0435\u0433\u043e \u0441\u043b\u0438\u0442\u044c \u043c\u043d\u0435 \u043a\u0430\u0440\u043c\u0443. \u0411\u0443\u0434\u0443 \u0447\u0440\u0435\u0437\u0432\u044b\u0447\u0430\u0439\u043d\u043e \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0435\u043d \u0432\u0430\u043c, \u0433\u043e\u0441\u043f\u043e\u0434\u0438\u043d(-\u0436\u0430), \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043b\u0438\u0447\u043a\u0443 (\u0430 \u043c\u043e\u0436\u043d\u043e \u0438 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043a \u0441\u0442\u0430\u0442\u044c\u0435) \u2014 \u043a\u0430\u043a\u0443\u044e \u043e\u0448\u0438\u0431\u043a\u0443 \u044f \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043b, \u0447\u0442\u043e\u0431\u044b \u0432\u043f\u0440\u0435\u0434\u044c \u044d\u0442\u043e\u0433\u043e \u0438\u0437\u0431\u0435\u0433\u0430\u0442\u044c.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u043d\u043e\u0441\u0442\u044c<\/b><\/p>\n<div class=\"spoiler_text\">\u0412 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0445\u043e\u0447\u0443 \u043f\u043e\u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0438\u0442\u044c \u043c\u043e\u044e \u043b\u044e\u0431\u0438\u043c\u0443\u044e \u0436\u0435\u043d\u0443 \u0437\u0430 \u0442\u0435\u0440\u043f\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u0435\u0439\u043a\u0443 \u0437\u0430 \u043f\u0440\u0438\u044f\u0442\u043d\u043e\u0435 \u0443\u0440\u0447\u0430\u043d\u0438\u0435 \u0440\u044f\u0434\u043e\u043c \u043d\u0430 \u0441\u0442\u043e\u043b\u0435, \u0441\u043e\u0441\u0435\u0434\u0435\u0439 \u0437\u0430 \u0442\u0438\u0448\u0438\u043d\u0443 \u0438, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u0432\u0430\u0441 \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435!  <\/div>\n<\/div>\n<\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/459050\/\"> https:\/\/habr.com\/ru\/post\/459050\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\u041c\u043e\u0442\u0438\u0432\u043e\u043c \u0434\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u043e\u0441\u043b\u0443\u0436\u0438\u043b\u0430 <a href=\"https:\/\/habr.com\/ru\/post\/458632\/\">\u0434\u0440\u0443\u0433\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f<\/a> \u043d\u0430 \u0442\u0435\u043c\u0443 \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u0438 <b>Vue<\/b> \u0438, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, <b>Vuex<\/b>. \u041a \u043c\u043e\u0435\u043c\u0443 \u0443\u0434\u0438\u0432\u043b\u0435\u043d\u0438\u044e \u044f \u043d\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u0442\u0430\u043c \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439, \u043f\u043e \u043c\u043e\u0435\u043c\u0443 \u043c\u043d\u0435\u043d\u0438\u044e, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0443\u0447\u0448\u0438\u043c \u0432 \u0441\u0432\u043e\u0435\u043c \u0440\u043e\u0434\u0435 \u00ab\u0442\u0438\u043f\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u043c\u00bb Vuex. \u041f\u043e\u0438\u0441\u043a \u043f\u043e \u0425\u0430\u0431\u0440\u0443, \u0434\u0430 \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043f\u043e \u0420\u0443\u043d\u0435\u0442\u0443 (\u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0438 \u0432 \u0430\u043d\u0433\u043b\u043e\u044f\u0437\u044b\u0447\u043d\u044b\u0445 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430\u0445 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0445\u043e\u0434\u0443 \u043d\u0430\u0439\u0442\u0438 \u043a\u0430\u043a\u0438\u0435-\u043b\u0438\u0431\u043e \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u044f), \u0443\u0432\u044b, \u043d\u0435 \u0434\u0430\u043b \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432. \u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u043c \u0440\u0430\u0437\u0431\u043e\u0440\u043e\u043c \u0438 \u043c\u043d\u043e\u0433\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u044b\u043c \u043c\u0430\u043d\u0443\u0430\u043b\u043e\u043c \u043f\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435, \u043d\u043e \u0441\u043a\u043e\u0440\u0435\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441 \u0432\u0430\u043c\u0438, \u0443\u0432\u0430\u0436\u0430\u0435\u043c\u044b\u0435 Vue-\u043d\u0438\u043d\u0434\u0437\u044f, \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043e \u0441\u0432\u043e\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-291756","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/291756","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=291756"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/291756\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=291756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=291756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=291756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}