Merge pull request '修复专区抓取失败问题' (#619) from Eeeros/forgeplus-react:gitlink_ssr_test into gitlink_ssr
1
This commit is contained in:
commit
32e0673528
|
|
@ -350,7 +350,7 @@ export function setSeoMeta(keyWords, title, description, url, owner, projectId)
|
|||
if(owner)keyStatement += owner;
|
||||
if(projectId)keyStatement += `/${projectId}`;
|
||||
|
||||
if (domObj) {
|
||||
if (__SERVER__) {
|
||||
document = domObj.window.document
|
||||
}
|
||||
// 服务端没有location
|
||||
|
|
@ -376,7 +376,7 @@ export function setSeoMeta(keyWords, title, description, url, owner, projectId)
|
|||
|
||||
export function setDefaultMeta() {
|
||||
|
||||
if (domObj) {
|
||||
if (__SERVER__) {
|
||||
document = domObj.window.document
|
||||
}
|
||||
document.querySelector(`title`).textContent = 'GitLink,新一代开源创新服务平台 分布式协作开发 一站式过程管理 高效流水线运维 多层次代码分析 多维度用户画像 分布式协作开发 基于Git打造分布式代码托管环境';
|
||||
|
|
|
|||
Loading…
Reference in New Issue