From 122f9c45ee7e5ab4882aacbc0744a6a5921f4c7e Mon Sep 17 00:00:00 2001 From: xiaokang Date: Wed, 29 Nov 2023 15:47:38 +0800 Subject: [PATCH] change default project name --- src/page/Gateway/customConnect.ts | 2 +- src/page/Gateway/index.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/page/Gateway/customConnect.ts b/src/page/Gateway/customConnect.ts index b6962d9d1..ef6e4b071 100644 --- a/src/page/Gateway/customConnect.ts +++ b/src/page/Gateway/customConnect.ts @@ -168,7 +168,7 @@ export const action = async (config: ICustomConnectAction) => { * get default project */ - const projectName = login.user?.accountName; + const projectName = "USER_PROJECT_" + login.user?.accountName; const project = (await listProjects(projectName, 1, 20))?.contents?.[0]; diff --git a/src/page/Gateway/index.tsx b/src/page/Gateway/index.tsx index 73db742db..c870ea8ed 100644 --- a/src/page/Gateway/index.tsx +++ b/src/page/Gateway/index.tsx @@ -19,7 +19,7 @@ */ import { Layout, Spin, Tag } from 'antd'; // @ts-ignore import React, { useEffect, useState } from 'react'; -import { formatMessage, history } from '@umijs/max'; +import { history } from '@umijs/max'; import { decrypt } from '@/common/network/other'; import { UserStore } from '@/store/login'; @@ -36,6 +36,7 @@ import { action as newCloudConnectionAction, INewCloudConnection } from './newCl import { apply as ssoLoginAction, ISSOLogin } from './ssoLogin'; import { action as taskAction, ITaskAction } from './task'; import { action as tutorialAction, ITutorialAction } from './tutorial'; +import { formatMessage } from '@/util/intl'; const { Content } = Layout; interface IRemoteStartData {