Fix website link error.

This commit is contained in:
jaywcjlove 2019-08-03 13:39:04 +08:00
parent 63d14f4e14
commit a7d6017949
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@
this.root_path = (function () { this.root_path = (function () {
var elm_path = $$('current_path'); var elm_path = $$('current_path');
var url = window.location.origin + window.location.pathname; var url = window.location.origin + window.location.pathname;
return elm_path ? url.replace(/\/(c\/)?\w+\.html/, '').replace(/\/$/, '') : ''; return elm_path ? url.replace(/\/(c\/)?(\w|-)+\.html/, '').replace(/\/$/, '') : '';
})(); })();
this.query = ''; // this.query = ''; //