Просмотр исходного кода

fix: correct url for production error reference links

Evan You 2 лет назад
Родитель
Сommit
c3087ff2cc

+ 1 - 1
packages/compiler-core/src/errors.ts

@@ -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

+ 1 - 1
packages/runtime-core/src/errorHandling.ts

@@ -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) {