]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: update link to Vue 2 documentation (#1330)
authorStéphane Bisinger <stephane@sbisinger.ch>
Wed, 1 Jun 2022 15:42:48 +0000 (17:42 +0200)
committerGitHub <noreply@github.com>
Wed, 1 Jun 2022 15:42:48 +0000 (17:42 +0200)
Use the correct subdomain to link to the Vue 2 documentation. Since the switch to Vue 3 as the default Vue version, to access the Vue 2 documentation the `https://v2.vuejs.org` subdomain must be used.

packages/docs/core-concepts/state.md

index 8d4fef216d69693ea947380911aab294eca5f93b..db47b014fe84507242e273144626c58d6bc08bc7 100644 (file)
@@ -24,7 +24,7 @@ const useStore = defineStore('storeId', {
 ```
 
 :::tip
-If you are using Vue 2, the data you create in `state` follows the same rules as the `data` in a Vue instance, ie the state object must be plain and you need to call `Vue.set()` when **adding new** properties to it. **See also: [Vue#data](https://vuejs.org/v2/api/#data)**.
+If you are using Vue 2, the data you create in `state` follows the same rules as the `data` in a Vue instance, ie the state object must be plain and you need to call `Vue.set()` when **adding new** properties to it. **See also: [Vue#data](https://v2.vuejs.org/v2/api/#data)**.
 :::
 
 ## Accessing the `state`