add 新增路由跳转自定义title

This commit is contained in:
LiuHao
2023-06-18 23:47:10 +08:00
parent a46c511f1f
commit 3b3fb80231
3 changed files with 16 additions and 6 deletions

View File

@ -125,6 +125,9 @@ const initTags = () => {
}
const addTags = () => {
const { name } = route;
if(route.query.title) {
route.meta.title = route.query.title;
}
if (name) {
useTagsViewStore().addView(route);
if (route.meta.link) {