diff --git a/examples/todomvc/app.js b/examples/todomvc/app.js index f8bfeb1ea61f51d49734d9f4c428e5d5fac3518d..7a1a65486a35625e93dee8a14d4597e99831c18e 100644 --- a/examples/todomvc/app.js +++ b/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) { diff --git a/packages/vue-server-renderer/build.dev.js b/packages/vue-server-renderer/build.dev.js index 8235936b2bde6b78c4133f973a5efd939e4d1573..f4a575aba8923e015ea80d7b61e90180cc2c7889 100644 --- a/packages/vue-server-renderer/build.dev.js +++ b/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 */ ); diff --git a/packages/vue-template-compiler/browser.js b/packages/vue-template-compiler/browser.js index 92d3b5d913afadc352890db7e4e873f5ec31dfdd..6ffad539827ad3de4d8485f4fda93a5d8283cc1c 100644 --- a/packages/vue-template-compiler/browser.js +++ b/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 */ ); diff --git a/packages/weex-template-compiler/build.js b/packages/weex-template-compiler/build.js index 68976949e79840a906b1bbe55fc509de3cf27410..ba0e498cbc67d1c9f47eb36b8920174c23f6c445 100644 --- a/packages/weex-template-compiler/build.js +++ b/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 */ ); diff --git a/packages/weex-vue-framework/factory.js b/packages/weex-vue-framework/factory.js index 4cb547b525024bc1ad589d1ee7e7e839fb0422f8..6fad6da87553ac9f17ed103e053960a4c6d51f9e 100644 --- a/packages/weex-vue-framework/factory.js +++ b/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 ); } diff --git a/src/compiler/codegen/index.js b/src/compiler/codegen/index.js index acb3ca9118cb648488171751990e3fde6a87575c..cb6d1f9f1e6abcea9d068c63e13001f62ae720c9 100644 --- a/src/compiler/codegen/index.js +++ b/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 */ ) diff --git a/src/core/instance/proxy.js b/src/core/instance/proxy.js index b1884f7118cc1d0113a047d8df1b035b02aedbea..74c19cf601a2adc286e7bd1151e916569223598a 100644 --- a/src/core/instance/proxy.js +++ b/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 ) } diff --git a/src/core/instance/state.js b/src/core/instance/state.js index 64d0364912119a99b8901515cb31e0f369d1a79a..edcb13167e752155b5618d2725a1104c878d7122 100644 --- a/src/core/instance/state.js +++ b/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 ) } diff --git a/src/platforms/web/runtime/index.js b/src/platforms/web/runtime/index.js index fe29b22aeb120f938d59f3036b7c05426f1ea64d..fa64569653390b606d289867cdc11139ee9a0e41 100644 --- a/src/platforms/web/runtime/index.js +++ b/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) diff --git a/src/test.js b/src/test.js new file mode 100644 index 0000000000000000000000000000000000000000..cc9b024a2507963c1ee2c4256bdea730bf5e615d --- /dev/null +++ b/src/test.js @@ -0,0 +1 @@ +console.log("test!!!")