mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-25 07:43:08 +02:00
Fix bug
This commit is contained in:
parent
aff80199e5
commit
8b2098fc89
1 changed files with 2 additions and 2 deletions
|
@ -21,10 +21,10 @@ export default Vue.extend({
|
||||||
props: ['url', 'rel'],
|
props: ['url', 'rel'],
|
||||||
data() {
|
data() {
|
||||||
const isSelf = this.url.startsWith(local);
|
const isSelf = this.url.startsWith(local);
|
||||||
const hasRoute =
|
const hasRoute = isSelf && (
|
||||||
this.url.substr(local.length).startsWith('/@') ||
|
this.url.substr(local.length).startsWith('/@') ||
|
||||||
this.url.substr(local.length).startsWith('/notes/') ||
|
this.url.substr(local.length).startsWith('/notes/') ||
|
||||||
this.url.substr(local.length).startsWith('/pages/');
|
this.url.substr(local.length).startsWith('/pages/'));
|
||||||
return {
|
return {
|
||||||
local,
|
local,
|
||||||
schema: null,
|
schema: null,
|
||||||
|
|
Loading…
Reference in a new issue