Skip to content

Commit 9eb8ea5

Browse files
authored
chore: fix some legacy doc urls in warnings and readme (#12725) [ci skip]
1 parent 2263948 commit 9eb8ea5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Vue.js supports all browsers that are [ES5-compliant](https://kangax.github.io/c
7373

7474
## Documentation
7575

76-
To check out [live examples](https://vuejs.org/v2/examples/) and docs, visit [vuejs.org](https://vuejs.org).
76+
To check out [live examples](https://v2.vuejs.org/v2/examples/) and docs, visit [vuejs.org](https://v2.vuejs.org).
7777

7878
## Questions
7979

src/core/instance/proxy.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if (__DEV__) {
1919
'referenced during render. Make sure that this property is reactive, ' +
2020
'either in the data option, or for class-based components, by ' +
2121
'initializing the property. ' +
22-
'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
22+
'See: https://v2.vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
2323
target
2424
)
2525
}
@@ -29,7 +29,7 @@ if (__DEV__) {
2929
`Property "${key}" must be accessed with "$data.${key}" because ` +
3030
'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
3131
'prevent conflicts with Vue internals. ' +
32-
'See: https://vuejs.org/v2/api/#data',
32+
'See: https://v2.vuejs.org/v2/api/#data',
3333
target
3434
)
3535
}

src/core/instance/state.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function initData(vm: Component) {
127127
__DEV__ &&
128128
warn(
129129
'data functions should return an object:\n' +
130-
'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
130+
'https://v2.vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
131131
vm
132132
)
133133
}

0 commit comments

Comments
 (0)