Commit 4683af5a authored by 郭志伟's avatar 郭志伟

fix(index.ts): title屏蔽

parent 9cea1e5a
......@@ -71,7 +71,7 @@ export default class Layout extends Vue {
`<script src="https://activitystatic.lkbang.net/swiper/4.5.1/swiper.min.js"></script>`,
`<script src="https://activitystatic.lkbang.net/axios/0.19.2/axios.min.js"></script>`
];
talosHost: string = config.kdspHost
talosHost: string = config.kdspHost;
get title() {
return this.pageInfo.title || this.defaultTitle();
}
......@@ -83,8 +83,8 @@ export default class Layout extends Vue {
get keywords() {
return this.pageInfo.keywords || this.defaultTitle();
}
defaultTitle() {
return +localStorage.get('tenantId') == 560671 ? '羊小咩' : this.defaultTitle();
return +localStorage.get('tenantId') === 560671 ? '羊小咩' : '活动页';
}
}
\ No newline at end of file
......@@ -161,7 +161,7 @@ export default {
const { coverImage, pageName, pageDescribe, shareCoverImage } = this.pageInfo;
const link = `${window.location.origin}${window.location.pathname}`;
this.link = link;
const defaultTitle = +localStorage.get('tenantId') == 560671 ? '羊小咩' : '活动页';
const defaultTitle = +localStorage.get('tenantId') === 560671 ? '羊小咩' : '活动页';
this.shareInfo = {
event: "showShareView",
data: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment