]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: fix code block highlights (#1387)
authorshellingfordly <39196952+shellingfordly@users.noreply.github.com>
Wed, 22 Jun 2022 07:53:56 +0000 (15:53 +0800)
committerGitHub <noreply@github.com>
Wed, 22 Jun 2022 07:53:56 +0000 (09:53 +0200)
Co-authored-by: liuyao <liuyao@liuyaodeiMac.local>
packages/docs/getting-started.md
packages/docs/introduction.md

index bf624fa1731973dc72a840c65c01db2cb2b30415..196ba90fde96c8b1eb4ee65529bbe1e1eac9e6df 100644 (file)
@@ -16,7 +16,7 @@ If you are using the Vue CLI, you can instead give this [**unofficial plugin**](
 
 Create a pinia instance (the root store) and pass it to the app as a plugin:
 
-```js{2,5-6,8}
+```js {2,5-6,8}
 import { createApp } from 'vue'
 import { createPinia } from 'pinia'
 import App from './App.vue'
@@ -30,7 +30,7 @@ app.mount('#app')
 
 If you are using Vue 2, you also need to install a plugin and inject the created `pinia` at the root of the app:
 
-```js{1,3-4,12}
+```js {1,3-4,12}
 import { createPinia, PiniaVuePlugin } from 'pinia'
 
 Vue.use(PiniaVuePlugin)
index 94fb0d4bd19f7a96ab0987195bfd9d141e4a38c9..3dccd20972b0f974cf2ce9d07cb3390affc896a7 100644 (file)
@@ -77,7 +77,7 @@ export const useCounterStore = defineStore('counter', () => {
 
 If you are still not into `setup()` and Composition API, don't worry, Pinia also support a similar set of [_map helpers_ like Vuex](https://vuex.vuejs.org/guide/state.html#the-mapstate-helper). You define stores the same way but then use `mapStores()`, `mapState()`, or `mapActions()`:
 
-```js{22,24,28}
+```js {22,24,28}
 const useCounterStore = defineStore('counter', {
   state: () => ({ count: 0 }),
   getters: {