\n这是知乎网站的热搜榜\n\n\u003Cimg width=\"807\" height=\"942\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/092b0749-e7d2-4b00-bd5b-172b6725c892\" />\n\n### Reproduction\n\n希望能更新接口,获取最新热搜数据\n\n### Expected behavior\n\n希望能更新接口,获取最新热搜数据\n\n### System Info\n\n```Text\n1.6.20\n```\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [x] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [x] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [x] Read the [docs](https://vitepress.dev).\n- [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3059],{"name":3060,"color":3061},"bug: pending triage","e99695",4866,"closed","知乎热搜榜不更新","2025-07-30T04:05:01Z","https://github.com/vuejs/vitepress/issues/4866",0.73746943,{"description":3069,"labels":3070,"number":3071,"owner":3027,"repository":3028,"state":3063,"title":3072,"updated_at":3073,"url":3074,"score":3075},"dev可以正常显示\r\n\r\n",[],4325,"构建后首页丢失特效颜色","2024-11-08T04:43:06Z","https://github.com/vuejs/vitepress/issues/4325",0.7416665,{"description":3077,"labels":3078,"number":3079,"owner":3027,"repository":3028,"state":3063,"title":3080,"updated_at":3081,"url":3082,"score":3083},"如图所示,我想将导航标题级别提升,展示更多的,但是它是显示到2级标签。\r\n\r\n\r\n我参考了文档,但是没有找到相关配置,就是这样的效果\r\n\r\n\r\n\r\n请问,我该怎么做\r\n\r\n",[],4096,"页面导航问题求教","2024-08-08T04:42:37Z","https://github.com/vuejs/vitepress/issues/4096",0.759265,{"description":3085,"labels":3086,"number":3090,"owner":3027,"repository":3028,"state":3063,"title":3091,"updated_at":3092,"url":3093,"score":3094},"### Describe the bug\r\n\r\nI'm getting some errors when running `pnpm build`, I guess it's because I should somehow wrap this component causing the error in `\u003CClientOnly />`, but how should I find the exact cause from the error log? It does not provide any useful details (see below screenshot)\r\n\r\n---\r\n\r\nAnother question, as I guess my error is because of this:\r\nShould I wrap `watch()` inside `onMounted()`? or in another word, can I do it? I didn't find any corresponding example in Vue documentation... \r\nSorry if this is a dumb question, as I'm a react guy :(\r\n```vue\r\n\u003Cscript setup lang=\"ts\">\r\nimport { useLocalStorage } from '@vueuse/core';\r\nimport { watch } from 'vue';\r\n\r\nconst nfcapiEnvRef = useLocalStorage('vp-nfcapi-env', 'staging', {\r\n deep: false,\r\n listenToStorageChanges: true,\r\n writeDefaults: true\r\n});\r\n\r\nwatch(nfcapiEnvRef, (value, oldValue) => {\r\n const htmlDataSet = document.documentElement.dataset;\r\n oldValue && (htmlDataSet.nfcapiEnv = oldValue.toLowerCase());\r\n htmlDataSet.nfcapiEnv = value.toLowerCase();\r\n}, { immediate: true });\r\n\u003C/script>\r\n```\r\n\r\n---\r\n\r\nScreenshot of the error:\r\n\r\n\r\n\r\n\r\n\r\n### Reproduction\r\n\r\nThis is not a bug, but a question\r\n\r\n### Expected behavior\r\n\r\nN/A\r\n\r\n### System Info\r\n\r\n```sh\r\nSystem:\r\n OS: Windows 10 10.0.19045\r\n CPU: (16) x64 11th Gen Intel(R) Core(TM) i9-11900K @ 3.50GHz\r\n Memory: 30.87 GB / 63.84 GB\r\n Binaries:\r\n Node: 18.16.0 - C:\\NodeJS\\node.EXE\r\n Yarn: 1.22.19 - C:\\NodeJS\\yarn.CMD\r\n npm: 9.8.0 - C:\\NodeJS\\npm.CMD\r\n pnpm: 8.6.7 - C:\\NodeJS\\pnpm.CMD\r\n Browsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (114.0.1823.82)\r\n Internet Explorer: 11.0.19041.1566\r\n npmPackages:\r\n vitepress: ^1.0.0-beta.5 => 1.0.0-beta.5\r\n```\r\n\r\n\r\n### Additional context\r\n\r\nN/A\r\n\r\n### Validations\r\n\r\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\r\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\r\n- [X] Read the [docs](https://vitepress.dev).\r\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3087],{"name":3088,"color":3089},"question","5D5FAE",2627,"How should I trace build error?","2023-07-24T00:04:51Z","https://github.com/vuejs/vitepress/issues/2627",0.76448184,{"description":3096,"labels":3097,"number":3098,"owner":3027,"repository":3028,"state":3063,"title":3099,"updated_at":3100,"url":3101,"score":3102},"GET https://git136975643.github.io/vitepress/logo.svg 404",[],1196,"How to configure some picture resources in files after packaging?","2023-01-21T14:28:30Z","https://github.com/vuejs/vitepress/issues/1196",0.76922697,{"description":3104,"labels":3105,"number":3107,"owner":3027,"repository":3028,"state":3063,"title":3108,"updated_at":3109,"url":3110,"score":3111},"### Describe the bug\r\n\r\nhttps://github.com/vuejs/vitepress/blob/75ca9e4302c65e3bcc9518f7df928318380f6cf6/src/node/markdown/plugins/highlightLines.ts#L30\r\n\r\n`highlightLinePlugin` is used before `attrs`, and `token.info` is rewritten.\r\n\r\nvia https://github.com/vuejs/vitepress/pull/664#discussion_r902203459\r\n\r\n### Reproduction\r\n\r\n\u003Cimg width=\"177\" alt=\"image\" src=\"https://user-images.githubusercontent.com/8336744/174726207-1c068f94-f597-4d5e-9101-4709a08a60c3.png\">\r\n\r\n\u003Cimg width=\"299\" alt=\"image\" src=\"https://user-images.githubusercontent.com/8336744/174726233-83967c42-db47-4c12-8dbd-0c83a817c448.png\">\r\n\r\n\r\n### Expected behavior\r\n\r\nRender `data=\"asdf\"`\r\n\r\n### System Info\r\n\r\n```shell\r\nSystem:\r\n OS: macOS 13.0\r\n CPU: (10) arm64 Apple M1 Max\r\n Memory: 13.84 GB / 64.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 16.15.1 - ~/Library/Caches/fnm_multishells/95455_1655742557079/bin/node\r\n Yarn: 1.22.19 - ~/Library/Caches/fnm_multishells/95455_1655742557079/bin/yarn\r\n npm: 8.12.1 - ~/Library/Caches/fnm_multishells/95455_1655742557079/bin/npm\r\n Browsers:\r\n Chrome: 102.0.5005.115\r\n Firefox: 101.0.1\r\n Safari: 16.0\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.2 => 1.0.0-alpha.2\r\n```\r\n\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Validations\r\n\r\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\r\n- [X] Read the [docs](https://vitepress.vuejs.org).\r\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3106],{"name":3038,"color":3039},826,"support adding attributes to code blocks","2023-08-11T00:04:28Z","https://github.com/vuejs/vitepress/issues/826",0.7704368,{"description":3113,"labels":3114,"number":3122,"owner":3027,"repository":3028,"state":3063,"title":3123,"updated_at":3124,"url":3125,"score":3126},"### Describe the bug\n\nwhen i make an obvious mistake in `[hello].paths.js` as a counterpart to the `[hello].md` dynamic route files, i just see a generic error message.\r\n\r\ni want vitepress to _actually show me an error message_ lol not just this generic message\n\n### Reproduction\n\nhttps://stackblitz.com/edit/vite-32ue1q?file=docs%2F[hello].paths.js\r\n\r\n```js\r\n// [hello].paths.js\r\nimport { iDontExist } from 'node:silly';\r\n\r\nexport default {\r\n async paths() {},\r\n};\r\n```\n\n### Expected behavior\n\ni expect an error to be printed to the console similar to what happens if you do `node docs/[hello].paths.js`\r\n\r\n```js\r\nError [ERR_UNKNOWN_BUILTIN_MODULE]: No such built-in module: node:silly\r\n at __node_internal_ (https://vite32ue1q-hour.w-credentialless.staticblitz.com/blitz.09144545.js:36:5410)\r\n at new \u003Canonymous> (https://vite32ue1q-hour.w-credentialless.staticblitz.com/blitz.09144545.js:36:4172)\r\n at ESMLoader.\u003Canonymous> (https://vite32ue1q-hour.w-credentialless.staticblitz.com/blitz.09144545.js:189:3457)\r\n at ESMLoader.\u003Canonymous> (https://vite32ue1q-hour.w-credentialless.staticblitz.com/blitz.09144545.js:248:8318) {\r\n code: 'ERR_UNKNOWN_BUILTIN_MODULE'\r\n}\r\n```\n\n### System Info\n\n```Text\nSystem:\r\n OS: Linux 5.0 undefined\r\n CPU: (4) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz\r\n Memory: 0 Bytes / 0 Bytes\r\n Shell: 1.0 - /bin/jsh\r\n Binaries:\r\n Node: 18.18.0 - /usr/local/bin/node\r\n Yarn: 1.22.19 - /usr/local/bin/yarn\r\n npm: 9.4.2 - /usr/local/bin/npm\r\n pnpm: 8.9.2 - /usr/local/bin/pnpm\r\n npmPackages:\r\n vitepress: latest => 1.0.0-rc.24\n```\n\n\n### Additional context\n\n\r\nnot very helpful 😢\n\n### Validations\n\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3115,3118,3121],{"name":3116,"color":3117},"build","377ba8",{"name":3119,"color":3120},"contribution welcome","11E4B8",{"name":3038,"color":3039},3149,"`[hello].paths.js` swallows error","2024-01-07T00:05:00Z","https://github.com/vuejs/vitepress/issues/3149",0.7745836,["Reactive",3128],{},["Set"],["ShallowReactive",3131],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fkLMBuIkuhRsPQGOVALfMA8szDXG1nyzqorivcbCAp7c":-1},"/vuejs/vitepress/4857"]