Skip to content

Commit

Permalink
change default project name
Browse files Browse the repository at this point in the history
  • Loading branch information
HSunboy committed Nov 29, 2023
1 parent 1468149 commit 122f9c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/page/Gateway/customConnect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down
3 changes: 2 additions & 1 deletion src/page/Gateway/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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 {
Expand Down

0 comments on commit 122f9c4

Please sign in to comment.