tomiaa

Results 14 comments of tomiaa

> 我封装了下,你可以试试,https://github.com/laoergege/laoergege-blog/packages/1480309 .npmrc修改成你的地址,在npm安装的时候会报401错误,能否发布到 npmjs上面一下。 ```sh npm ERR! code E401 npm ERR! Incorrect or missing password. npm ERR! If you were trying to login, change your password, create an npm ERR!...

> 发到 npm 了,有什么问题再来反馈吧 引入之后启动报错了 ```sh D:/work/web/.temp/internal/clientConfigs.js 11 | import clientConfig10 from 'D:/work/web/node_modules/vuepress-plugin-copy-code2/lib/client/config.js' 12 | import clientConfig11 from 'D:/work/web/node_modules/@vuepress/plugin-search/lib/client/config.js' 13 | import clientConfig12 from 'D:\work\web\node_modules\@laoergege\vuepress-plugin-vssue-next-compat\lib\clientConfigFile.js' | ^ 14 | import...

> > > 发到 npm 了,有什么问题再来反馈吧 > > > > > > 引入之后启动报错了 > > ```shell > > D:/work/web/.temp/internal/clientConfigs.js > > 11 | import clientConfig10 from 'D:/work/web/node_modules/vuepress-plugin-copy-code2/lib/client/config.js' > > 12...

> 拉了下尝试没这问题,你这个问题我也不知道怎么回事。不过倒是遇到另一个我没考虑过的问题,文件都被我编译成 commonjs 格式,在 vite 下跑不起来,现在整好了,再发一次。你再试一下,说定就“重启大法”好了呢 ```sh import clientConfig10 from 'G:/WEB/gitee/web/node_modules/vuepress-plugin-copy-code2/lib/client/config.js' 12 | import clientConfig11 from 'G:/WEB/gitee/web/node_modules/@vuepress/plugin-search/lib/client/config.js' 13 | import clientConfig12 from 'G:\WEB\gitee\web\node_modules\@laoergege\vuepress-plugin-vssue-next-compat\lib\clientConfigFile.js' | ^ 14 | import clientConfig13 from...

> 发了,再试试 ![image](https://user-images.githubusercontent.com/34568691/175441696-3a8d6726-5c71-48e7-b686-0a64b2382cd9.png) ![image](https://user-images.githubusercontent.com/34568691/175441728-29b3ce8e-c7e2-4abc-ad80-b1ec6be361c3.png) 运行起来了,用的时候好像组件没被注册一样啥情况

> > > 发了,再试试 > > > > > > ![image](https://user-images.githubusercontent.com/34568691/175441696-3a8d6726-5c71-48e7-b686-0a64b2382cd9.png) > > ![image](https://user-images.githubusercontent.com/34568691/175441728-29b3ce8e-c7e2-4abc-ad80-b1ec6be361c3.png) > > 运行起来了,用的时候好像组件没被注册一样啥情况 > > ``` > demo > > > ``` > > 我这样测试了下,组件有注册吖。你先debug下吧。。 好像测出来了,我直接在markdown文件里面能显示组件,但是我在[自定义继承的主题](https://v2.vuepress.vuejs.org/zh/reference/default-theme/extending.html#%E5%B8%83%E5%B1%80%E6%8F%92%E6%A7%BD)里面用就显示不出来,控制台也不报未注册的错误。还是之前这个仓库你可以看看啥情况...

> 在你的测试项目中,我还发现个问题:`import 'vssue/dist/vssue.css';` 在 Layout 组件中导入无效,我在 .vuepress/client.ts 里导入才生效 可以了,我遇到一个问题,我在 /a.html 路径点登录,在你提供的事件登陆之前缓存路径。gitee登录会回调到我的首页,我页面进来判断缓存是不是存在缓存的 /a.html 路径,然后跳转到登录之前的地址。但是刚刚从gitee回调到我的首页,评论还在转圈我就改了路由,导致跳过去之后发现变成未登录了,你这边是怎么处理的

> > > 在你的测试项目中,我还发现个问题:`import 'vssue/dist/vssue.css';` 在 Layout 组件中导入无效,我在 .vuepress/client.ts 里导入才生效 > > > > > > 可以了,我遇到一个问题,我在 /a.html 路径点登录,在你提供的事件登陆之前缓存路径。gitee登录会回调到我的首页,我页面进来判断缓存是不是存在缓存的 /a.html 路径,然后跳转到登录之前的地址。但是刚刚从gitee回调到我的首页,评论还在转圈我就改了路由,导致跳过去之后发现变成未登录了,你这边是怎么处理的 > > onBeforeOauth 事件添加是我为了处理 github 的问题:重定向参数的路径不能有中文,否则会 github ouath 失败。所以我需要在跳转前把地址记录下来,然后重定向参数改为...

写了一个插件可以支持 gitee 评论,需要的可以看看https://www.npmjs.com/package/@tomiaa/comment

写了一个插件可以支持 gitee 评论,需要的可以看看https://www.npmjs.com/package/@tomiaa/comment