Mã lỗi sản xuất tham chiếu
Lỗi thời gian chạy
Section titled “Lỗi thời gian chạy”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:
Code | Message |
---|---|
0 | setup function |
1 | render function |
2 | watcher getter |
3 | watcher callback |
4 | watcher cleanup function |
5 | native event handler |
6 | component event handler |
7 | vnode hook |
8 | directive hook |
9 | transition hook |
10 | app errorHandler |
11 | app warnHandler |
12 | ref function |
13 | async component loader |
14 | scheduler flush |
15 | component update |
16 | app unmount cleanup function |
sp | serverPrefetch hook |
bc | beforeCreate hook |
c | created hook |
bm | beforeMount hook |
m | mounted hook |
bu | beforeUpdate hook |
u | updated |
bum | beforeUnmount hook |
um | unmounted hook |
a | activated hook |
da | deactivated hook |
ec | errorCaptured hook |
rtc | renderTracked hook |
rtg | renderTriggered hook |