Skip to content

Mã lỗi sản xuất tham chiếu

Trong bản dựng sản xuất, đối số thứ 3 được truyền cho các API xử lý lỗi sau sẽ là một mã ngắn thay vì chuỗi thông tin đầy đủ:

  • app.config.errorHandler
  • onErrorCaptured (Composition API)
  • errorCaptured (Options API)

Bảng sau đây ánh xạ các mã thành chuỗi thông tin đầy đủ ban đầu của chúng:

CodeMessage
0setup function
1render function
2watcher getter
3watcher callback
4watcher cleanup function
5native event handler
6component event handler
7vnode hook
8directive hook
9transition hook
10app errorHandler
11app warnHandler
12ref function
13async component loader
14scheduler flush
15component update
16app unmount cleanup function
spserverPrefetch hook
bcbeforeCreate hook
ccreated hook
bmbeforeMount hook
mmounted hook
bubeforeUpdate hook
uupdated
bumbeforeUnmount hook
umunmounted hook
aactivated hook
dadeactivated hook
ecerrorCaptured hook
rtcrenderTracked hook
rtgrenderTriggered hook