分页器 因快速跳转弹窗报错 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'insertBefore')
Author: Jesse205Created Aug 27, 2026Updated Aug 27, 2026
Labelsuntriaged
描述错误
在最后一页向前跳转时,报错:
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'insertBefore')复现步骤
- 跳转最后一页
- 向前跳转
https://github.com/user-attachments/assets/cda10302-d6c4-4f8f-a445-117e75acd608
最小复现链接
系统信息
System:
OS: Windows 11 10.0.26200
CPU: (16) x64 Intel(R) Core(TM) 5 220H
Memory: 4.07 GB / 23.70 GB
Binaries:
Node: 24.18.0 - C:\Program Files\nodejs\node.EXE
npm: 12.0.1 - C:\Program Files\nodejs\npm.CMD
pnpm: 11.22.0 - C:\Users\lenovo2\AppData\Roaming\npm\pnpm.CMD
Browsers:
Edge: Chromium (151.0.4129.107)
Firefox: 152.0.6 - C:\Program Files\Mozilla Firefox\firefox.exe
npmPackages:
naive-ui: ^2.45.2 => 2.45.2
vue: ^3.5.41 => 3.5.41使用的包管理器
pnpm
验证
Source: tusen-ai/naive-ui