Skip to content

Commit

Permalink
Merge pull request #120 from linqiqi077/main
Browse files Browse the repository at this point in the history
fix: fix data-handle-detail img  and replace create model-app validat…
  • Loading branch information
Carrotzpc authored Dec 28, 2023
2 parents 21e321d + 5b410d9 commit 83a99ad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
File renamed without changes
4 changes: 3 additions & 1 deletion src/pages/DataHandleDetail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import type { TabsProps } from 'antd';
import { Avatar, Divider, List, Spin, Tabs, notification } from 'antd';
import React, { useEffect, useState } from 'react';

import detail from '@/assets/img/data-handle-detail.png';

import Status from '../../components/Status';
import utils from '../../utils/__utils';
import DataHandle from './DataHandle';
Expand Down Expand Up @@ -109,7 +111,7 @@ const DataHandleDetail = props => {
// actions={[<Button>删除</Button>]}
>
<List.Item.Meta
avatar={<Avatar size={56} src="/数据处理详情.png"></Avatar>}
avatar={<Avatar size={56} src={detail}></Avatar>}
description={
<>
<span>
Expand Down
12 changes: 4 additions & 8 deletions src/pages/ModelAppList/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -502,15 +502,11 @@ class ModelAppList$$Page extends React.Component {
async validatorName(v) {
if (v) {
try {
const res = await this.utils.bff.listApplications({
input: {
keyword: v,
namespace: this.utils.getAuthData()?.project,
page: 1,
pageSize: 10,
},
const res = await this.utils.bff.getApplication({
name: v,
namespace: this.utils.getAuthData()?.project,
});
if (res?.Application?.listApplicationMetadata?.nodes?.length) {
if (res?.Application?.getApplication?.metadata?.name) {
return '应用名称重复';
}
} catch (error) {}
Expand Down

0 comments on commit 83a99ad

Please sign in to comment.