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

use id instead of pid #6

Merged
merged 2 commits into from
Jun 14, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/client/classification.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ export default ({ Vue }) => {
const classified = new Classifiable(map, pages)
return classified
},
[`$current${classifiedType.charAt(0).toUpperCase() +
classifiedType.slice(1)}`]() {
const tagName = this.$route.meta.pid
[`$current${classifiedType.charAt(0).toUpperCase() + classifiedType.slice(1)}`]() {
const tagName = this.$route.meta.id
return this[helperName].getItemByName(tagName)
},
}
Expand Down