-
Notifications
You must be signed in to change notification settings - Fork 584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
开启PJAX局部刷新后,文章和页面中的短代码无法解析,需手动刷新 #285
Comments
需要把相关代码放进重载函数里面,见app.js |
看了一下sakura-app.js,但是没太搞明白,是需要把解析短代码相关的函数放在this.pjax = function () 里面吗,如果您知道如何操作的话可否稍微再指点一下 |
对的,放里面 |
有无简单的示例?比如就 console.log("每个页面都运行这句") 让每个页面在控制台都输出 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
安装短代码插件(Shortcoder),并开启PJAX局部刷新后,从首页点开页面或文章,其中的短代码无法解析,效果如下
手动刷新后才可以正常显示,效果如下
图片中是引入了一个element-ui的测试按钮,在插件中新建短代码,名称为element-button,添加以下代码后保存,即可在文章或页面中使用[sc name="element-button"][/sc]引入
The text was updated successfully, but these errors were encountered: