Răsfoiți Sursa

chore: fix v2 links in comments (#12653) [ci skip]

Jinjiang 3 ani în urmă
părinte
comite
8d3fce029f

+ 2 - 2
examples/todomvc/app.js

@@ -55,7 +55,7 @@ var app = new Vue({
   },
 
   // computed properties
-  // https://vuejs.org/guide/computed.html
+  // https://v2.vuejs.org/v2/guide/computed.html
   computed: {
     filteredTodos: function () {
       return filters[this.visibility](this.todos)
@@ -129,7 +129,7 @@ var app = new Vue({
 
   // a custom directive to wait for the DOM to be updated
   // before focusing on the input field.
-  // https://vuejs.org/guide/custom-directive.html
+  // https://v2.vuejs.org/v2/guide/custom-directive.html
   directives: {
     'todo-focus': function (el, binding) {
       if (binding.value) {

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

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

+ 1 - 1
packages/vue-template-compiler/browser.js

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

+ 1 - 1
packages/weex-template-compiler/build.js

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

+ 3 - 3
packages/weex-vue-framework/factory.js

@@ -2010,7 +2010,7 @@ if (process.env.NODE_ENV !== 'production') {
       'referenced during render. Make sure that this property is reactive, ' +
       'either in the data option, or for class-based components, by ' +
       'initializing the property. ' +
-      'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
+      'See: https://v2.vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties',
       target
     );
   };
@@ -2020,7 +2020,7 @@ if (process.env.NODE_ENV !== 'production') {
       "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
       'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
       'prevent conflicts with Vue internals. ' +
-      'See: https://vuejs.org/v2/api/#data',
+      'See: https://v2.vuejs.org/v2/api/#data',
       target
     );
   };
@@ -4900,7 +4900,7 @@ function initData (vm) {
     data = {};
     process.env.NODE_ENV !== 'production' && warn(
       'data functions should return an object:\n' +
-      'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
+      'https://v2.vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
       vm
     );
   }

+ 1 - 1
src/compiler/codegen/index.js

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

+ 2 - 2
src/core/instance/proxy.js

@@ -19,7 +19,7 @@ if (process.env.NODE_ENV !== 'production') {
       'referenced during render. Make sure that this property is reactive, ' +
       'either in the data option, or for class-based components, by ' +
       'initializing the property. ' +
-      'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
+      'See: https://v2.vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties',
       target
     )
   }
@@ -29,7 +29,7 @@ if (process.env.NODE_ENV !== 'production') {
       `Property "${key}" must be accessed with "$data.${key}" because ` +
       'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
       'prevent conflicts with Vue internals. ' +
-      'See: https://vuejs.org/v2/api/#data',
+      'See: https://v2.vuejs.org/v2/api/#data',
       target
     )
   }

+ 1 - 1
src/core/instance/state.js

@@ -119,7 +119,7 @@ function initData (vm: Component) {
     data = {}
     process.env.NODE_ENV !== 'production' && warn(
       'data functions should return an object:\n' +
-      'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
+      'https://v2.vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
       vm
     )
   }

+ 1 - 1
src/platforms/web/runtime/index.js

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