Update console header link to new nacos.io. (#12177)
This commit is contained in:
parent
8a03485fa8
commit
d68b904f93
@ -32,17 +32,17 @@ module.exports = {
|
||||
{
|
||||
key: 'docs',
|
||||
text: 'DOCS',
|
||||
link: 'https://nacos.io/en-us/docs/v2/quickstart/quick-start.html',
|
||||
link: 'https://nacos.io/en/docs/latest/what-is-nacos/',
|
||||
},
|
||||
{
|
||||
key: 'blog',
|
||||
text: 'BLOG',
|
||||
link: 'https://nacos.io/en-us/blog',
|
||||
link: 'https://nacos.io/en/blog/',
|
||||
},
|
||||
{
|
||||
key: 'community',
|
||||
text: 'COMMUNITY',
|
||||
link: 'https://nacos.io/en-us/community',
|
||||
link: 'https://nacos.io/en/news/',
|
||||
},
|
||||
{
|
||||
key: 'enterprise',
|
||||
@ -97,17 +97,17 @@ module.exports = {
|
||||
{
|
||||
key: 'docs',
|
||||
text: '文档',
|
||||
link: 'https://nacos.io/zh-cn/docs/v2/what-is-nacos.html',
|
||||
link: 'https://nacos.io/docs/latest/what-is-nacos/',
|
||||
},
|
||||
{
|
||||
key: 'blog',
|
||||
text: '博客',
|
||||
link: 'https://nacos.io/zh-cn/blog/index.html',
|
||||
link: 'https://nacos.io/blog/',
|
||||
},
|
||||
{
|
||||
key: 'community',
|
||||
text: '社区',
|
||||
link: 'https://nacos.io/zh-cn/community/index.html',
|
||||
link: 'https://nacos.io/news/',
|
||||
},
|
||||
{
|
||||
key: 'enterprise',
|
||||
|
@ -88,12 +88,13 @@ class Header extends React.Component {
|
||||
} = this.props;
|
||||
const { home, docs, blog, community, enterprise, languageSwitchButton } = locale;
|
||||
const { passwordResetUser = '', passwordResetUserVisible = false } = this.state;
|
||||
const BASE_URL = `https://nacos.io/${language.toLocaleLowerCase()}/`;
|
||||
const BASE_URL =
|
||||
language.toLocaleLowerCase() === 'en-us' ? 'https://nacos.io/en/' : 'https://nacos.io/';
|
||||
const NAV_MENU = [
|
||||
{ id: 1, title: home, link: BASE_URL },
|
||||
{ id: 2, title: docs, link: `${BASE_URL}docs/v2/what-is-nacos.html` },
|
||||
{ id: 3, title: blog, link: `${BASE_URL}blog/index.html` },
|
||||
{ id: 4, title: community, link: `${BASE_URL}community/index.html` },
|
||||
{ id: 2, title: docs, link: `${BASE_URL}docs/latest/what-is-nacos/` },
|
||||
{ id: 3, title: blog, link: `${BASE_URL}blog/` },
|
||||
{ id: 4, title: community, link: `${BASE_URL}news/` },
|
||||
{
|
||||
id: 5,
|
||||
title: enterprise,
|
||||
|
@ -35,7 +35,7 @@
|
||||
<link rel="stylesheet" type="text/css" href="console-ui/public/css/icon.css">
|
||||
<link rel="stylesheet" type="text/css" href="console-ui/public/css/font-awesome.css">
|
||||
<!-- 第三方css结束 -->
|
||||
<link href="./css/main.css?5b2657aaac80512bd557" rel="stylesheet"></head>
|
||||
<link href="./css/main.css?d71f900fb2dcffde12ce" rel="stylesheet"></head>
|
||||
|
||||
<body>
|
||||
<div id="root" style="overflow:hidden"></div>
|
||||
@ -56,6 +56,6 @@
|
||||
<script src="console-ui/public/js/merge.js"></script>
|
||||
<script src="console-ui/public/js/loader.js"></script>
|
||||
<!-- 第三方js结束 -->
|
||||
<script type="text/javascript" src="./js/main.js?5b2657aaac80512bd557"></script></body>
|
||||
<script type="text/javascript" src="./js/main.js?d71f900fb2dcffde12ce"></script></body>
|
||||
|
||||
</html>
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user