chore: replace all cn comments of fe to en version by volc api (#320)

This commit is contained in:
tecvan
2025-07-31 10:32:15 +08:00
committed by GitHub
parent 716ec0cba8
commit 71f6245a01
2960 changed files with 15545 additions and 15545 deletions

View File

@@ -17,12 +17,12 @@
import { useLocation } from 'react-router-dom';
/**
* 从URL上获取工作空间子模块
* Get the workspace submodule from the URL
* @param pathname
* @returns 工作子模块字符串,如果不匹配则返回 undefined
* @Returns the working submodule string, or undefined if it doesn't match
*/
const getSpaceApp = (pathname: string): string | undefined => {
// 以 /space/ 开头,后面跟 spaceId再跟子模块只允许字母、数字、-、_
// Start with /space/, followed by spaceId, followed by submodules (only letters, numbers, -, _ allowed)
const match = pathname.match(/^\/space\/[^/]+\/([A-Za-z0-9_-]+)/);
return match ? match[1] : undefined;
};

View File

@@ -23,7 +23,7 @@ import { type BotSpace } from '@coze-arch/bot-api/developer_api';
export const useRefreshSpaces = (refresh?: boolean) => {
const [loading, setLoading] = useState(true);
const enterpriseInfo = useCurrentEnterpriseInfo();
// 企业发生变化,重新获取空间列表
// Businesses change, regain the list of spaces
useEffect(() => {
if (refresh || !useSpaceStore.getState().inited) {
setLoading(true);