Open Nemo1166 opened 1 year ago
See if the configuration is written in the wrong place, it needs to be written under defineUserConfig and not passed into the plugin. I didn't look into the details of how the plugin reads the configuration, but found that it worked just fine, so I didn't look deeper.
The teadocs keyword is just an identifier used to store notification status information in localstorage. It has nothing to do with the vuepress-theme-teadocs theme, which has the plugin built in by default. This plugin is a by-product of the development of that theme.
看下是不是配置写错地方了,配置需要写在 defineUserConfig 下,而不是传入插件。当时没有详细研究插件如何读取配置,发现这样写也能跑通,就没有深入去看了。
teadocs 关键词只是用来在 localstorage 中存储 通知状态信息时候的标识。和 vuepress-theme-teadocs 主题没有关系,vuepress-theme-teadocs 主题默认内置了该插件。这个插件是开发那款主题的副产物。
我确实把配置写在 defineUserConfig
,但也确实没有生效。而且 TS 检查报告 alert
不能作为配置的 key。
我确实把配置写在
defineUserConfig
,但也确实没有生效。而且 TS 检查报告alert
不能作为配置的 key。
遇到了同样的问题,请问解决了吗?
同样的问题,我是用的是 vuepress-theme-hope 主题,根据README文档操作报错如下
I'm using vuepress-theme-hope, and when I tried using this plugin, it didn't work. I have read the source code, and found that there are some keywords like "... teadocs ...". Is this plugin available in theme-teadocs only? How can I use it in another theme?
我在调用插件时并未生效,阅读了 vue SFC 源码,您的插件似乎仅在使用 teadocs 主题时有效。如果我想将其应用在其他主题应当做何修改?