api.html 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664
  1. <!DOCTYPE HTML>
  2. <html lang="en" >
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  6. <title>API Reference · Vuex</title>
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  8. <meta name="description" content="">
  9. <meta name="generator" content="GitBook 3.2.2">
  10. <link rel="stylesheet" href="../gitbook/style.css">
  11. <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism.css">
  12. <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
  13. <link rel="stylesheet" href="../gitbook/gitbook-plugin-theme-vuejs/vue.css">
  14. <meta name="HandheldFriendly" content="true"/>
  15. <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
  16. <meta name="apple-mobile-web-app-capable" content="yes">
  17. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  18. <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
  19. <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
  20. <link rel="prev" href="hot-reload.html" />
  21. </head>
  22. <body>
  23. <div class="book">
  24. <div class="book-summary">
  25. <div id="book-search-input" role="search">
  26. <input type="text" placeholder="Type to search" />
  27. </div>
  28. <nav role="navigation">
  29. <script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=vuejs" id="_carbonads_js"></script>
  30. <ul class="summary">
  31. <li class="chapter " data-level="1.1" data-path="./">
  32. <a href="./">
  33. Introduction
  34. </a>
  35. </li>
  36. <li class="chapter " data-level="1.2" >
  37. <a target="_blank" href="https://github.com/vuejs/vuex/releases">
  38. Release Notes
  39. </a>
  40. </li>
  41. <li class="chapter " data-level="1.3" data-path="installation.html">
  42. <a href="installation.html">
  43. Installation
  44. </a>
  45. </li>
  46. <li class="chapter " data-level="1.4" data-path="intro.html">
  47. <a href="intro.html">
  48. What is Vuex?
  49. </a>
  50. </li>
  51. <li class="chapter " data-level="1.5" data-path="getting-started.html">
  52. <a href="getting-started.html">
  53. Getting Started
  54. </a>
  55. </li>
  56. <li class="chapter " data-level="1.6" data-path="core-concepts.html">
  57. <a href="core-concepts.html">
  58. Core Concepts
  59. </a>
  60. <ul class="articles">
  61. <li class="chapter " data-level="1.6.1" data-path="state.html">
  62. <a href="state.html">
  63. State
  64. </a>
  65. </li>
  66. <li class="chapter " data-level="1.6.2" data-path="getters.html">
  67. <a href="getters.html">
  68. Getters
  69. </a>
  70. </li>
  71. <li class="chapter " data-level="1.6.3" data-path="mutations.html">
  72. <a href="mutations.html">
  73. Mutations
  74. </a>
  75. </li>
  76. <li class="chapter " data-level="1.6.4" data-path="actions.html">
  77. <a href="actions.html">
  78. Actions
  79. </a>
  80. </li>
  81. <li class="chapter " data-level="1.6.5" data-path="modules.html">
  82. <a href="modules.html">
  83. Modules
  84. </a>
  85. </li>
  86. </ul>
  87. </li>
  88. <li class="chapter " data-level="1.7" data-path="structure.html">
  89. <a href="structure.html">
  90. Application Structure
  91. </a>
  92. </li>
  93. <li class="chapter " data-level="1.8" data-path="plugins.html">
  94. <a href="plugins.html">
  95. Plugins
  96. </a>
  97. </li>
  98. <li class="chapter " data-level="1.9" data-path="strict.html">
  99. <a href="strict.html">
  100. Strict Mode
  101. </a>
  102. </li>
  103. <li class="chapter " data-level="1.10" data-path="forms.html">
  104. <a href="forms.html">
  105. Form Handling
  106. </a>
  107. </li>
  108. <li class="chapter " data-level="1.11" data-path="testing.html">
  109. <a href="testing.html">
  110. Testing
  111. </a>
  112. </li>
  113. <li class="chapter " data-level="1.12" data-path="hot-reload.html">
  114. <a href="hot-reload.html">
  115. Hot Reloading
  116. </a>
  117. </li>
  118. <li class="chapter active" data-level="1.13" data-path="api.html">
  119. <a href="api.html">
  120. API Reference
  121. </a>
  122. </li>
  123. <li class="divider"></li>
  124. <li>
  125. <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
  126. Published with GitBook
  127. </a>
  128. </li>
  129. </ul>
  130. </nav>
  131. </div>
  132. <div class="book-body">
  133. <div class="body-inner">
  134. <div class="book-header" role="navigation">
  135. <!-- Title -->
  136. <h1>
  137. <i class="fa fa-circle-o-notch fa-spin"></i>
  138. <a href="." >API Reference</a>
  139. </h1>
  140. </div>
  141. <div class="page-wrapper" tabindex="-1" role="main">
  142. <div class="page-inner">
  143. <div id="book-search-results">
  144. <div class="search-noresults">
  145. <section class="normal markdown-section">
  146. <h1 id="api-reference">API Reference</h1>
  147. <h3 id="vuexstore">Vuex.Store</h3>
  148. <pre class="language-"><code class="lang-js"><span class="token keyword">import</span> Vuex <span class="token keyword">from</span> <span class="token string">&apos;vuex&apos;</span>
  149. <span class="token keyword">const</span> store <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">Vuex<span class="token punctuation">.</span>Store</span><span class="token punctuation">(</span><span class="token punctuation">{</span> <span class="token operator">...</span>options <span class="token punctuation">}</span><span class="token punctuation">)</span>
  150. </code></pre>
  151. <h3 id="vuexstore-constructor-options">Vuex.Store Constructor Options</h3>
  152. <ul>
  153. <li><p><strong>state</strong></p>
  154. <ul>
  155. <li><p>type: <code>Object | Function</code></p>
  156. <p>The root state object for the Vuex store. <a href="state.html">Details</a></p>
  157. <p>If you pass a function that returns an object, the returned object is used as the root state. This is useful when you want to reuse the state object especially for module reuse. <a href="modules.html#module-reuse">Details</a></p>
  158. </li>
  159. </ul>
  160. </li>
  161. <li><p><strong>mutations</strong></p>
  162. <ul>
  163. <li><p>type: <code>{ [type: string]: Function }</code></p>
  164. <p>Register mutations on the store. The handler function always receives <code>state</code> as the first argument (will be module local state if defined in a module), and receives a second <code>payload</code> argument if there is one.</p>
  165. <p><a href="mutations.html">Details</a></p>
  166. </li>
  167. </ul>
  168. </li>
  169. <li><p><strong>actions</strong></p>
  170. <ul>
  171. <li><p>type: <code>{ [type: string]: Function }</code></p>
  172. <p>Register actions on the store. The handler function receives a <code>context</code> object that exposes the following properties:</p>
  173. <pre class="language-"><code class="lang-js"><span class="token punctuation">{</span>
  174. state<span class="token punctuation">,</span> <span class="token comment" spellcheck="true">// same as `store.state`, or local state if in modules</span>
  175. rootState<span class="token punctuation">,</span> <span class="token comment" spellcheck="true">// same as `store.state`, only in modules</span>
  176. commit<span class="token punctuation">,</span> <span class="token comment" spellcheck="true">// same as `store.commit`</span>
  177. dispatch<span class="token punctuation">,</span> <span class="token comment" spellcheck="true">// same as `store.dispatch`</span>
  178. getters<span class="token punctuation">,</span> <span class="token comment" spellcheck="true">// same as `store.getters`, or local getters if in modules</span>
  179. rootGetters <span class="token comment" spellcheck="true">// same as `store.getters`, only in modules</span>
  180. <span class="token punctuation">}</span>
  181. </code></pre>
  182. <p>And also receives a second <code>payload</code> argument if there is one.</p>
  183. <p><a href="actions.html">Details</a></p>
  184. </li>
  185. </ul>
  186. </li>
  187. <li><p><strong>getters</strong></p>
  188. <ul>
  189. <li><p>type: <code>{ [key: string]: Function }</code></p>
  190. <p>Register getters on the store. The getter function receives the following arguments:</p>
  191. <pre class="language-"><code>state, // will be module local state if defined in a module.
  192. getters // same as store.getters
  193. </code></pre><p>Specific when defined in a module</p>
  194. <pre class="language-"><code>state, // will be module local state if defined in a module.
  195. getters, // module local getters of the current module
  196. rootState, // global state
  197. rootGetters // all getters
  198. </code></pre><p>Registered getters are exposed on <code>store.getters</code>.</p>
  199. <p><a href="getters.html">Details</a></p>
  200. </li>
  201. </ul>
  202. </li>
  203. <li><p><strong>modules</strong></p>
  204. <ul>
  205. <li><p>type: <code>Object</code></p>
  206. <p>An object containing sub modules to be merged into the store, in the shape of:</p>
  207. <pre class="language-"><code class="lang-js"><span class="token punctuation">{</span>
  208. key<span class="token punctuation">:</span> <span class="token punctuation">{</span>
  209. state<span class="token punctuation">,</span>
  210. namespaced<span class="token operator">?</span><span class="token punctuation">,</span>
  211. mutations<span class="token operator">?</span><span class="token punctuation">,</span>
  212. actions<span class="token operator">?</span><span class="token punctuation">,</span>
  213. getters<span class="token operator">?</span><span class="token punctuation">,</span>
  214. modules<span class="token operator">?</span>
  215. <span class="token punctuation">}</span><span class="token punctuation">,</span>
  216. <span class="token operator">...</span>
  217. <span class="token punctuation">}</span>
  218. </code></pre>
  219. <p>Each module can contain <code>state</code> and <code>mutations</code> similar to the root options. A module&apos;s state will be attached to the store&apos;s root state using the module&apos;s key. A module&apos;s mutations and getters will only receives the module&apos;s local state as the first argument instead of the root state, and module actions&apos; <code>context.state</code> will also point to the local state.</p>
  220. <p><a href="modules.html">Details</a></p>
  221. </li>
  222. </ul>
  223. </li>
  224. <li><p><strong>plugins</strong></p>
  225. <ul>
  226. <li><p>type: <code>Array<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Function</span><span class="token punctuation">&gt;</span></span></code></p>
  227. <p>An array of plugin functions to be applied to the store. The plugin simply receives the store as the only argument and can either listen to mutations (for outbound data persistence, logging, or debugging) or dispatch mutations (for inbound data e.g. websockets or observables).</p>
  228. <p><a href="plugins.html">Details</a></p>
  229. </li>
  230. </ul>
  231. </li>
  232. <li><p><strong>strict</strong></p>
  233. <ul>
  234. <li>type: <code>Boolean</code></li>
  235. <li><p>default: <code>false</code></p>
  236. <p>Force the Vuex store into strict mode. In strict mode any mutations to Vuex state outside of mutation handlers will throw an Error.</p>
  237. <p><a href="strict.html">Details</a></p>
  238. </li>
  239. </ul>
  240. </li>
  241. </ul>
  242. <h3 id="vuexstore-instance-properties">Vuex.Store Instance Properties</h3>
  243. <ul>
  244. <li><p><strong>state</strong></p>
  245. <ul>
  246. <li><p>type: <code>Object</code></p>
  247. <p>The root state. Read only.</p>
  248. </li>
  249. </ul>
  250. </li>
  251. <li><p><strong>getters</strong></p>
  252. <ul>
  253. <li><p>type: <code>Object</code></p>
  254. <p>Exposes registered getters. Read only.</p>
  255. </li>
  256. </ul>
  257. </li>
  258. </ul>
  259. <h3 id="vuexstore-instance-methods">Vuex.Store Instance Methods</h3>
  260. <ul>
  261. <li><strong><code>commit(type: string, payload?: any, options?: Object)</code></strong></li>
  262. <li><p><strong><code>commit(mutation: Object, options?: Object)</code></strong></p>
  263. <p>Commit a mutation. <code>options</code> can have <code>root: true</code> that allows to commit root mutations in <a href="modules.html#namespacing">namespaced modules</a>. <a href="mutations.html">Details</a></p>
  264. </li>
  265. <li><p><strong><code>dispatch(type: string, payload?: any, options?: Object)</code></strong></p>
  266. </li>
  267. <li><p><strong><code>dispatch(action: Object, options?: Object)</code></strong></p>
  268. <p>Dispatch an action. <code>options</code> can have <code>root: true</code> that allows to dispatch root actions in <a href="modules.html#namespacing">namespaced modules</a>. Returns a Promise that resolves all triggered action handlers. <a href="actions.html">Details</a></p>
  269. </li>
  270. <li><p><strong><code>replaceState(state: Object)</code></strong></p>
  271. <p>Replace the store&apos;s root state. Use this only for state hydration / time-travel purposes.</p>
  272. </li>
  273. <li><p><strong><code>watch(fn: Function, callback: Function, options?: Object): Function</code></strong></p>
  274. <p>Reactively watch <code>fn</code>&apos;s return value, and call the callback when the value changes. <code>fn</code> receives the store&apos;s state as the first argument, and getters as the second argument. Accepts an optional options object that takes the same options as Vue&apos;s <code>vm.$watch</code> method.</p>
  275. <p>To stop watching, call the returned unwatch function.</p>
  276. </li>
  277. <li><p><strong><code>subscribe(handler: Function): Function</code></strong></p>
  278. <p>Subscribe to store mutations. The <code>handler</code> is called after every mutation and receives the mutation descriptor and post-mutation state as arguments:</p>
  279. <pre class="language-"><code class="lang-js">store<span class="token punctuation">.</span><span class="token function">subscribe</span><span class="token punctuation">(</span><span class="token punctuation">(</span>mutation<span class="token punctuation">,</span> state<span class="token punctuation">)</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token punctuation">{</span>
  280. console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>mutation<span class="token punctuation">.</span>type<span class="token punctuation">)</span>
  281. console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>mutation<span class="token punctuation">.</span>payload<span class="token punctuation">)</span>
  282. <span class="token punctuation">}</span><span class="token punctuation">)</span>
  283. </code></pre>
  284. <p>To stop subscribing, call the returned unsubscribe function.</p>
  285. <p>Most commonly used in plugins. <a href="plugins.html">Details</a></p>
  286. </li>
  287. <li><p><strong><code>subscribeAction(handler: Function): Function</code></strong></p>
  288. <blockquote>
  289. <p>New in 2.5.0</p>
  290. </blockquote>
  291. <p>Subscribe to store actions. The <code>handler</code> is called for every dispatched action and receives the action descriptor and current store state as arguments:</p>
  292. <pre class="language-"><code class="lang-js">store<span class="token punctuation">.</span><span class="token function">subscribeAction</span><span class="token punctuation">(</span><span class="token punctuation">(</span>action<span class="token punctuation">,</span> state<span class="token punctuation">)</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token punctuation">{</span>
  293. console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>action<span class="token punctuation">.</span>type<span class="token punctuation">)</span>
  294. console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>action<span class="token punctuation">.</span>payload<span class="token punctuation">)</span>
  295. <span class="token punctuation">}</span><span class="token punctuation">)</span>
  296. </code></pre>
  297. <p>To stop subscribing, call the returned unsubscribe function.</p>
  298. <p>Most commonly used in plugins. <a href="plugins.html">Details</a></p>
  299. </li>
  300. <li><p><strong><code>registerModule(path: string | Array<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>string</span><span class="token punctuation">&gt;</span></span>, module: Module, options?: Object)</code></strong></p>
  301. <p>Register a dynamic module. <a href="modules.html#dynamic-module-registration">Details</a></p>
  302. <p><code>options</code> can have <code>preserveState: true</code> that allows to preserve the previous state. Useful with Server Side Rendering.</p>
  303. </li>
  304. <li><p><strong><code>unregisterModule(path: string | Array<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>string</span><span class="token punctuation">&gt;</span></span>)</code></strong></p>
  305. <p>Unregister a dynamic module. <a href="modules.html#dynamic-module-registration">Details</a></p>
  306. </li>
  307. <li><p><strong><code>hotUpdate(newOptions: Object)</code></strong></p>
  308. <p>Hot swap new actions and mutations. <a href="hot-reload.html">Details</a></p>
  309. </li>
  310. </ul>
  311. <h3 id="component-binding-helpers">Component Binding Helpers</h3>
  312. <ul>
  313. <li><p><strong><code>mapState(namespace?: string, map: Array<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>string</span><span class="token punctuation">&gt;</span></span> | Object<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>string</span> <span class="token attr-name">|</span> <span class="token attr-name">function</span><span class="token punctuation">&gt;</span></span>): Object</code></strong></p>
  314. <p>Create component computed options that return the sub tree of the Vuex store. <a href="state.html#the-mapstate-helper">Details</a></p>
  315. <p>The first argument can optionally be a namespace string. <a href="modules.html#binding-helpers-with-namespace">Details</a></p>
  316. <p>The second object argument&apos;s members can be a function. <code>function(state: any)</code> </p>
  317. </li>
  318. <li><p><strong><code>mapGetters(namespace?: string, map: Array<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>string</span><span class="token punctuation">&gt;</span></span> | Object<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>string</span><span class="token punctuation">&gt;</span></span>): Object</code></strong></p>
  319. <p>Create component computed options that return the evaluated value of a getter. <a href="getters.html#the-mapgetters-helper">Details</a></p>
  320. <p>The first argument can optionally be a namespace string. <a href="modules.html#binding-helpers-with-namespace">Details</a></p>
  321. </li>
  322. <li><p><strong><code>mapActions(namespace?: string, map: Array<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>string</span><span class="token punctuation">&gt;</span></span> | Object<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>string</span> <span class="token attr-name">|</span> <span class="token attr-name">function</span><span class="token punctuation">&gt;</span></span>): Object</code></strong></p>
  323. <p>Create component methods options that dispatch an action. <a href="actions.html#dispatching-actions-in-components">Details</a></p>
  324. <p>The first argument can optionally be a namespace string. <a href="modules.html#binding-helpers-with-namespace">Details</a></p>
  325. <p>The second object argument&apos;s members can be a function. <code>function(dispatch: function, ...args: any[])</code></p>
  326. </li>
  327. <li><p><strong><code>mapMutations(namespace?: string, map: Array<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>string</span><span class="token punctuation">&gt;</span></span> | Object<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>string</span> <span class="token attr-name">|</span> <span class="token attr-name">function</span><span class="token punctuation">&gt;</span></span>): Object</code></strong></p>
  328. <p>Create component methods options that commit a mutation. <a href="mutations.html#committing-mutations-in-components">Details</a></p>
  329. <p>The first argument can optionally be a namespace string. <a href="modules.html#binding-helpers-with-namespace">Details</a></p>
  330. <p>The second object argument&apos;s members can be a function. <code>function(commit: function, ...args: any[])</code></p>
  331. </li>
  332. <li><p><strong><code>createNamespacedHelpers(namespace: string): Object</code></strong></p>
  333. <p>Create namespaced component binding helpers. The returned object contains <code>mapState</code>, <code>mapGetters</code>, <code>mapActions</code> and <code>mapMutations</code> that are bound with the given namespace. <a href="modules.html#binding-helpers-with-namespace">Details</a></p>
  334. </li>
  335. </ul>
  336. </section>
  337. </div>
  338. <div class="search-results">
  339. <div class="has-results">
  340. <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
  341. <ul class="search-results-list"></ul>
  342. </div>
  343. <div class="no-results">
  344. <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
  345. </div>
  346. </div>
  347. </div>
  348. </div>
  349. </div>
  350. <script src="//m.servedby-buysellads.com/monetization.js" type="text/javascript"></script>
  351. <div class="bsa-cpc"></div>
  352. <script>
  353. (function(){
  354. if(typeof _bsa !== 'undefined' && _bsa) {
  355. _bsa.init('default', 'CKYD62QM', 'placement:vuejsorg', {
  356. target: '.bsa-cpc',
  357. align: 'horizontal',
  358. disable_css: 'true'
  359. });
  360. }
  361. })();
  362. </script>
  363. </div>
  364. <a href="hot-reload.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: Hot Reloading">
  365. <i class="fa fa-angle-left"></i>
  366. </a>
  367. </div>
  368. <script>
  369. var gitbook = gitbook || [];
  370. gitbook.push(function() {
  371. gitbook.page.hasChanged({"page":{"title":"API Reference","level":"1.13","depth":1,"previous":{"title":"Hot Reloading","level":"1.12","depth":1,"path":"hot-reload.md","ref":"hot-reload.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","prism","-highlight","github","-highlight","github"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"edit-link":{"label":"Edit This Page","base":"https://github.com/vuejs/vuex/tree/dev/docs"},"github":{"url":"https://github.com/vuejs/vuex/"},"prism":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":false,"twitter":false,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-vuejs":{},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Vuex","language":"en","links":{"sharing":{"facebook":false,"twitter":false}},"gitbook":"2.x.x"},"file":{"path":"api.md","mtime":"2018-04-20T00:44:03.847Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2018-04-20T00:47:55.633Z"},"basePath":".","book":{"language":"en"}});
  372. });
  373. </script>
  374. </div>
  375. <script src="../gitbook/gitbook.js"></script>
  376. <script src="../gitbook/theme.js"></script>
  377. <script src="../gitbook/gitbook-plugin-edit-link/plugin.js"></script>
  378. <script src="../gitbook/gitbook-plugin-github/plugin.js"></script>
  379. <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
  380. <script src="../gitbook/gitbook-plugin-search/search.js"></script>
  381. <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
  382. <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
  383. <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
  384. </body>
  385. </html>