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

fix(index.ts): title屏蔽

parent 9cea1e5a
...@@ -71,7 +71,7 @@ export default class Layout extends Vue { ...@@ -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/swiper/4.5.1/swiper.min.js"></script>`,
`<script src="https://activitystatic.lkbang.net/axios/0.19.2/axios.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() { get title() {
return this.pageInfo.title || this.defaultTitle(); return this.pageInfo.title || this.defaultTitle();
} }
...@@ -83,8 +83,8 @@ export default class Layout extends Vue { ...@@ -83,8 +83,8 @@ export default class Layout extends Vue {
get keywords() { get keywords() {
return this.pageInfo.keywords || this.defaultTitle(); return this.pageInfo.keywords || this.defaultTitle();
} }
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 { ...@@ -161,7 +161,7 @@ export default {
const { coverImage, pageName, pageDescribe, shareCoverImage } = this.pageInfo; const { coverImage, pageName, pageDescribe, shareCoverImage } = this.pageInfo;
const link = `${window.location.origin}${window.location.pathname}`; const link = `${window.location.origin}${window.location.pathname}`;
this.link = link; this.link = link;
const defaultTitle = +localStorage.get('tenantId') == 560671 ? '羊小咩' : '活动页'; const defaultTitle = +localStorage.get('tenantId') === 560671 ? '羊小咩' : '活动页';
this.shareInfo = { this.shareInfo = {
event: "showShareView", event: "showShareView",
data: { 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