chore: update link

This commit is contained in:
chenos 2024-06-24 16:45:45 +08:00
parent 8dd8303f21
commit e69d33a09c
2 changed files with 6 additions and 10 deletions

View File

@ -8,12 +8,12 @@
*/
import { css, cx } from '@emotion/css';
import { parseHTML } from '@nocobase/utils/client';
import React from 'react';
import { useTranslation } from 'react-i18next';
import { useToken } from '../style';
import { usePlugin } from '../application';
import { parseHTML } from '@nocobase/utils/client';
import { useCurrentAppInfo } from '../appInfo/CurrentAppInfoProvider';
import { usePlugin } from '../application';
import { useToken } from '../style';
export const PoweredBy = () => {
const { i18n } = useTranslation();
@ -22,7 +22,7 @@ export const PoweredBy = () => {
const data = useCurrentAppInfo();
const urls = {
'en-US': 'https://www.nocobase.com',
'zh-CN': 'https://cn.nocobase.com',
'zh-CN': 'https://www.nocobase.com/cn/',
};
const style = css`
text-align: center;

View File

@ -49,7 +49,7 @@ const SettingsMenu: React.FC<{
key: 'homePage',
label: (
<a
href={isSimplifiedChinese ? 'https://cn.nocobase.com/' : 'https://www.nocobase.com'}
href={isSimplifiedChinese ? 'https://www.nocobase.com/cn/' : 'https://www.nocobase.com'}
target="_blank"
rel="noreferrer"
>
@ -73,11 +73,7 @@ const SettingsMenu: React.FC<{
key: 'license',
label: (
<a
href={
isSimplifiedChinese
? 'https://cn.nocobase.com/agreement-cn.html'
: 'https://www.nocobase.com/agreement.html'
}
href={isSimplifiedChinese ? 'https://www.nocobase.com/cn/agreement' : 'https://www.nocobase.com/en/agreement'}
target="_blank"
rel="noreferrer"
>