fix: 截断过长路径

This commit is contained in:
gaoxiaolin.gao 2018-01-30 11:45:41 +08:00
parent 8e8ce32e31
commit 9b3a2e6d51
5 changed files with 7 additions and 15 deletions

View File

@ -4,6 +4,7 @@
* 数据导入同步数据导入支持swagger 3.0
* swagger 数据导入支持 2xx 的httpcode
* 新增系统信息页面
#### Bug Fixed
@ -15,6 +16,7 @@
* 修复mongodb帐号密码配置错误时引发的错误
* 修复删除分组后侧边数据没哟更新问题
### v1.3.4
#### Feature

View File

@ -45,8 +45,6 @@ const MenuUser = (props) => (
item.name === '个人中心' ? <Link to={item.path + `/${props.uid}`}>
<Icon type={item.icon} />
{item.name}
</Link> : !item.adminFlag ? <Link to={item.path}><Icon type={item.icon} />
{item.name}
</Link> : <Link to={item.path}><Icon type={item.icon} />
{item.name}
</Link>

View File

@ -63,9 +63,11 @@
}
.path {
width: 100%;
display: inline-block;
overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;
padding-right: 24px;
}
.colValue{
display: inline-block;

View File

@ -50,13 +50,7 @@ class InterfaceList extends Component {
this.setState({
catid: null
})
// let r = await axios.get('/api/interface/list?project_id=' + projectId);
// if (r.data.errcode) {
// throw new Error(r.data.errmsg);
// }
// this.setState({
// data: r.data.data
// })
let r = await this.props.fetchInterfaceList(projectId);
this.setState({
data: r.payload.data.data
@ -166,7 +160,7 @@ class InterfaceList extends Component {
title: '接口分类',
dataIndex: 'catid',
key: 'catid',
width: 12,
width: 18,
render: (item, record) => {
return <Select value={item + ''} className="select" onChange={(catid) => this.changeInterfaceCat(record._id, catid)}>
{this.props.catList.map(cat => {

View File

@ -74,9 +74,7 @@ class statisMockController extends baseController {
if (yapi.WEBCONFIG.mail && yapi.WEBCONFIG.mail.enable) {
mail = await this.checkEmail();
// return ctx.body = yapi.commons.resReturn(result);
} else {
console.log(3)
mail = '未配置'
}
@ -91,8 +89,6 @@ class statisMockController extends baseController {
freemem,
uptime
}
return ctx.body = yapi.commons.resReturn(data);
}
@ -104,7 +100,7 @@ class statisMockController extends baseController {
yapi.mail.verify((error) => {
if (error) {
result = '不可用';
reject(result)
resolve(result)
} else {
result = '可用';
resolve(result)