Commit 8a59f1a7 authored by wenglk's avatar wenglk

fix title

parent 5a6d25b9
......@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<!-- <title><%= htmlWebpackPlugin.options.title %></title> -->
<title>Chain33区块链浏览器</title>
<title>Chain33区块链浏览器</title>
</head>
<body>
<noscript>
......
......@@ -152,8 +152,8 @@ export const lang = {
email: "email",
zh: "Chinese",
en: "English",
YUANLIAN: "YUANCHAIN",
title: "Enterprise Blockchain SaaS Platform",
YUANLIAN: "Chain33 ",
title: "Block chain browser",
bannerDesc: "Making Blockchain Easy in the World",
whatIs: "What's YUANCHAIN?",
mission: "Mission",
......
......@@ -9,7 +9,7 @@ export const lang = {
confirm: "确定",
nodata: "暂无数据",
},
blockChain: "原链区块链",
blockChain: "Chain33区块链",
browser: "浏览器",
chainMsg: {
latestBlock: "最新区块",
......@@ -150,8 +150,8 @@ export const lang = {
email: "合作邮箱",
zh: "中文",
en: "英文",
YUANLIAN: "原链",
title: "企业级区块链SaaS平台",
YUANLIAN: "Chain33",
title: "区块链浏览器",
bannerDesc: "让世界没有难做的链",
whatIs: "什么是原链?",
mission: "使命",
......
......@@ -43,7 +43,7 @@ export default Vue.extend({
this.$emit("hidden", true);
window.sessionStorage.setItem("language", v);
this.$i18n.locale = v === "zh-CN" ? "zh" : "en";
document.title = `${this.$t("lang.YUANLIAN")}${this.$t("lang.title")}`;
document.title = `${this.$t("lang.YUANLIAN")}${this.$t("lang.title")}`;
moment.locale(v === "zh-CN" ? "zh-cn" : "en");
this.$router.replace({
path: this.$route.path,
......
......@@ -323,7 +323,7 @@ export default Vue.extend({
this.isTop = scrollY < 70 ? true : false;
});
moment.locale(this.iconType === "zh-CN" ? "zh-cn" : "en");
document.title = `${this.$t("lang.YUANLIAN")}${this.$t("lang.title")}`;
document.title = `${this.$t("lang.YUANLIAN")}${this.$t("lang.title")}`;
},
watch: {
$route(n, o) {
......
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