Commit 8a59f1a7 authored by wenglk's avatar wenglk

fix title

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