mirror of
https://github.com/YMFE/yapi.git
synced 2025-04-18 15:20:25 +08:00
docs: 删除项目的文案修改
This commit is contained in:
parent
a729750e79
commit
aa62e7895b
@ -67,7 +67,6 @@ class ProjectCard extends Component {
|
||||
|
||||
render() {
|
||||
const { projectData, inFollowPage } = this.props;
|
||||
console.log(projectData);
|
||||
return (
|
||||
<div className="card-container">
|
||||
<Card bordered={false} className="m-card" onClick={() => this.props.history.push('/project/' + (projectData.projectid || projectData._id))}>
|
||||
|
@ -34,7 +34,6 @@ class Follows extends Component {
|
||||
|
||||
receiveRes = () => {
|
||||
this.props.getFollowList(this.props.uid).then((res) => {
|
||||
console.log(res);
|
||||
if (res.payload.data.errcode === 0) {
|
||||
this.setState({
|
||||
data: res.payload.data.data.list
|
||||
@ -44,9 +43,7 @@ class Follows extends Component {
|
||||
}
|
||||
|
||||
async componentWillMount() {
|
||||
console.log(this.props);
|
||||
this.props.getFollowList(this.props.uid).then((res) => {
|
||||
console.log(res);
|
||||
if (res.payload.data.errcode === 0) {
|
||||
this.setState({
|
||||
data: res.payload.data.data.list
|
||||
|
@ -140,9 +140,9 @@ class ProjectMessage extends Component {
|
||||
showConfirm = () => {
|
||||
let that = this;
|
||||
confirm({
|
||||
title: "确认删除 " + that.props.projectMsg.name + " 分组吗?",
|
||||
title: "确认删除 " + that.props.projectMsg.name + " 项目吗?",
|
||||
content: <div style={{ marginTop: '10px', fontSize: '12px', lineHeight: '25px' }}>
|
||||
<Alert message="警告:此操作非常危险,会删除该分组下面所有项目和接口,并且无法恢复!" type="warning" banner />
|
||||
<Alert message="警告:此操作非常危险,会删除该项目下面所有接口,并且无法恢复!" type="warning" banner />
|
||||
<div style={{ marginTop: '15px' }}>
|
||||
<p style={{ marginBottom: '8px' }}><b>请输入项目名称确认此操作:</b></p>
|
||||
<Input id="project_name" size="large" />
|
||||
@ -151,7 +151,7 @@ class ProjectMessage extends Component {
|
||||
onOk() {
|
||||
let groupName = document.getElementById('project_name').value;
|
||||
if (that.props.projectMsg.name !== groupName) {
|
||||
message.error('分组名称有误')
|
||||
message.error('项目名称有误')
|
||||
return new Promise((resolve, reject) => {
|
||||
reject('error')
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user