tag title 公告

This commit is contained in:
zhanglipeng
2021-05-22 10:54:04 +08:00
parent 42df499ff1
commit 256478d27c
7 changed files with 156 additions and 5 deletions

View File

@ -6,9 +6,15 @@ const state = {
const mutations = {
ADD_VISITED_VIEW: (state, view) => {
if (state.visitedViews.some(v => v.path === view.path)) return
let title = view.meta.title || 'no-name';
console.log(view)
if(view && view.query && view.query.dayflowassessmentteacherdetails) {
title = view.query.dayflowassessmentteacherdetails;
}
state.visitedViews.push(
Object.assign({}, view, {
title: view.meta.title || 'no-name'
title
})
)
},