fix lint
This commit is contained in:
parent
fd7d4e0e4e
commit
7510f75968
1 changed files with 3 additions and 2 deletions
|
|
@ -23,6 +23,7 @@ function install (hook, vm) {
|
||||||
div.style = `width: ${main.clientWidth}px; margin: 0 auto 20px;`
|
div.style = `width: ${main.clientWidth}px; margin: 0 auto 20px;`
|
||||||
dom.appendTo(dom.find('.content'), div)
|
dom.appendTo(dom.find('.content'), div)
|
||||||
|
|
||||||
|
// eslint-disable-next-line
|
||||||
window.disqus_config = function() {
|
window.disqus_config = function() {
|
||||||
this.page.url = location.origin + '/-' + vm.route.path
|
this.page.url = location.origin + '/-' + vm.route.path
|
||||||
this.page.identifier = vm.route.path
|
this.page.identifier = vm.route.path
|
||||||
|
|
@ -32,7 +33,7 @@ function install (hook, vm) {
|
||||||
|
|
||||||
hook.doneEach(_ => {
|
hook.doneEach(_ => {
|
||||||
if (typeof window.DISQUS !== 'undefined') {
|
if (typeof window.DISQUS !== 'undefined') {
|
||||||
DISQUS.reset({
|
window.DISQUS.reset({
|
||||||
reload: true,
|
reload: true,
|
||||||
config: function () {
|
config: function () {
|
||||||
this.page.url = location.origin + '/-' + vm.route.path
|
this.page.url = location.origin + '/-' + vm.route.path
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue