forked from natuka/web.puabadge.com
修改:更换标题和样式调整
This commit is contained in:
1 parent
e6ff4756df
commit
290b065310
11 files changed
+35
-13
No files matched your search
@@ -13,7 +13,7 @@ export const routes = [
|
||||
component: douyinHome,
|
||||
meta: {
|
||||
needGuard: true,
|
||||
title: '抖音定制',
|
||||
title: '首页',
|
||||
channel: 'douyin',
|
||||
},
|
||||
},
|
||||
|
||||
+5
-1
@@ -72,7 +72,11 @@ router.beforeEach((_to, _from, next) => {
|
||||
}
|
||||
|
||||
const pageTitle = (_to.meta.title as string) || '相册'
|
||||
window.document.title = `${config.brand.$t} - ${pageTitle.$t || pageTitle}`
|
||||
const titleText = pageTitle.$t || pageTitle
|
||||
const brandText = config.brand?.$t || config.brand || ''
|
||||
// 暂时去掉「葡哇立体肖像」前缀,仅保留页面标题(如「抖音定制」)
|
||||
window.document.title =
|
||||
config.showBrandInTitle && brandText ? `${brandText} - ${titleText}` : String(titleText)
|
||||
NProgress.start() // start progress bar
|
||||
const needGuard = _to.meta.needGuard
|
||||
if (needGuard) {
|
||||
|
||||
Reference in new issue
Block a user