Skip to content

Commit 8d3fce0

Browse files
authored
chore: fix v2 links in comments (#12653) [ci skip]
1 parent 65a333f commit 8d3fce0

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

examples/todomvc/app.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ var app = new Vue({
5555
},
5656

5757
// computed properties
58-
// https://vuejs.org/guide/computed.html
58+
// https://v2.vuejs.org/v2/guide/computed.html
5959
computed: {
6060
filteredTodos: function () {
6161
return filters[this.visibility](this.todos)
@@ -129,7 +129,7 @@ var app = new Vue({
129129

130130
// a custom directive to wait for the DOM to be updated
131131
// before focusing on the input field.
132-
// https://vuejs.org/guide/custom-directive.html
132+
// https://v2.vuejs.org/v2/guide/custom-directive.html
133133
directives: {
134134
'todo-focus': function (el, binding) {
135135
if (binding.value) {

packages/vue-server-renderer/build.dev.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5157,7 +5157,7 @@ function genFor (
51575157
state.warn(
51585158
"<" + (el.tag) + " v-for=\"" + alias + " in " + exp + "\">: component lists rendered with " +
51595159
"v-for should have explicit keys. " +
5160-
"See https://vuejs.org/guide/list.html#key for more info.",
5160+
"See https://v2.vuejs.org/v2/guide/list.html#Maintaining-State for more info.",
51615161
el.rawAttrsMap['v-for'],
51625162
true /* tip */
51635163
);

packages/vue-template-compiler/browser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4444,7 +4444,7 @@
44444444
state.warn(
44454445
"<" + (el.tag) + " v-for=\"" + alias + " in " + exp + "\">: component lists rendered with " +
44464446
"v-for should have explicit keys. " +
4447-
"See https://vuejs.org/guide/list.html#key for more info.",
4447+
"See https://v2.vuejs.org/v2/guide/list.html#Maintaining-State for more info.",
44484448
el.rawAttrsMap['v-for'],
44494449
true /* tip */
44504450
);

packages/weex-template-compiler/build.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3489,7 +3489,7 @@ function genFor (
34893489
state.warn(
34903490
"<" + (el.tag) + " v-for=\"" + alias + " in " + exp + "\">: component lists rendered with " +
34913491
"v-for should have explicit keys. " +
3492-
"See https://vuejs.org/guide/list.html#key for more info.",
3492+
"See https://v2.vuejs.org/v2/guide/list.html#Maintaining-State for more info.",
34933493
el.rawAttrsMap['v-for'],
34943494
true /* tip */
34953495
);

packages/weex-vue-framework/factory.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2010,7 +2010,7 @@ if (process.env.NODE_ENV !== 'production') {
20102010
'referenced during render. Make sure that this property is reactive, ' +
20112011
'either in the data option, or for class-based components, by ' +
20122012
'initializing the property. ' +
2013-
'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
2013+
'See: https://v2.vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties',
20142014
target
20152015
);
20162016
};
@@ -2020,7 +2020,7 @@ if (process.env.NODE_ENV !== 'production') {
20202020
"Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
20212021
'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
20222022
'prevent conflicts with Vue internals. ' +
2023-
'See: https://vuejs.org/v2/api/#data',
2023+
'See: https://v2.vuejs.org/v2/api/#data',
20242024
target
20252025
);
20262026
};
@@ -4900,7 +4900,7 @@ function initData (vm) {
49004900
data = {};
49014901
process.env.NODE_ENV !== 'production' && warn(
49024902
'data functions should return an object:\n' +
4903-
'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
4903+
'https://v2.vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
49044904
vm
49054905
);
49064906
}

src/compiler/codegen/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export function genFor (
204204
state.warn(
205205
`<${el.tag} v-for="${alias} in ${exp}">: component lists rendered with ` +
206206
`v-for should have explicit keys. ` +
207-
`See https://vuejs.org/guide/list.html#key for more info.`,
207+
`See https://v2.vuejs.org/v2/guide/list.html#Maintaining-State for more info.`,
208208
el.rawAttrsMap['v-for'],
209209
true /* tip */
210210
)

src/core/instance/proxy.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if (process.env.NODE_ENV !== 'production') {
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 (process.env.NODE_ENV !== 'production') {
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.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function initData (vm: Component) {
119119
data = {}
120120
process.env.NODE_ENV !== 'production' && warn(
121121
'data functions should return an object:\n' +
122-
'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
122+
'https://v2.vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
123123
vm
124124
)
125125
}

src/platforms/web/runtime/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ if (inBrowser) {
6767
console[console.info ? 'info' : 'log'](
6868
`You are running Vue in development mode.\n` +
6969
`Make sure to turn on production mode when deploying for production.\n` +
70-
`See more tips at https://vuejs.org/guide/deployment.html`
70+
`See more tips at https://v2.vuejs.org/v2/guide/deployment.html`
7171
)
7272
}
7373
}, 0)

0 commit comments

Comments
 (0)