This commit is contained in:
syuilo 2019-06-07 20:11:23 +09:00
parent aff80199e5
commit 8b2098fc89
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -21,10 +21,10 @@ export default Vue.extend({
props: ['url', 'rel'],
data() {
const isSelf = this.url.startsWith(local);
const hasRoute =
const hasRoute = isSelf && (
this.url.substr(local.length).startsWith('/@') ||
this.url.substr(local.length).startsWith('/notes/') ||
this.url.substr(local.length).startsWith('/pages/');
this.url.substr(local.length).startsWith('/pages/'));
return {
local,
schema: null,