Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit a49fa3d

Browse files
Enigmatrixulivz
authored andcommitted
fix: use id instead of pid to calculate current${frontmattterClassifierId} (#6)
1 parent 98a5d69 commit a49fa3d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/client/classification.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,8 @@ export default ({ Vue }) => {
5151
const classified = new Classifiable(map, pages)
5252
return classified
5353
},
54-
[`$current${classifiedType.charAt(0).toUpperCase() +
55-
classifiedType.slice(1)}`]() {
56-
const tagName = this.$route.meta.pid
54+
[`$current${classifiedType.charAt(0).toUpperCase() + classifiedType.slice(1)}`]() {
55+
const tagName = this.$route.meta.id
5756
return this[helperName].getItemByName(tagName)
5857
},
5958
}

0 commit comments

Comments
 (0)