fix: correct url for production error reference links

This commit is contained in:
Evan You 2024-01-18 20:00:01 +08:00
parent 2ffb956efe
commit c3087ff2cc
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ export function createCompilerError<T extends number>(
const msg =
__DEV__ || !__BROWSER__
? (messages || errorMessages)[code] + (additionalMessage || ``)
: `https://vuejs.org/errors/#compiler-${code}`
: `https://vuejs.org/error-reference/#compiler-${code}`
const error = new SyntaxError(String(msg)) as InferCompilerError<T>
error.code = code
error.loc = loc

View File

@ -112,7 +112,7 @@ export function handleError(
// in production the hook receives only the error code
const errorInfo = __DEV__
? ErrorTypeStrings[type]
: `https://vuejs.org/errors/#runtime-${type}`
: `https://vuejs.org/error-reference/#runtime-${type}`
while (cur) {
const errorCapturedHooks = cur.ec
if (errorCapturedHooks) {