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

View File

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

View File

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

View File

@ -50,13 +50,7 @@ class InterfaceList extends Component {
this.setState({ this.setState({
catid: null 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); let r = await this.props.fetchInterfaceList(projectId);
this.setState({ this.setState({
data: r.payload.data.data data: r.payload.data.data
@ -166,7 +160,7 @@ class InterfaceList extends Component {
title: '接口分类', title: '接口分类',
dataIndex: 'catid', dataIndex: 'catid',
key: 'catid', key: 'catid',
width: 12, width: 18,
render: (item, record) => { render: (item, record) => {
return <Select value={item + ''} className="select" onChange={(catid) => this.changeInterfaceCat(record._id, catid)}> return <Select value={item + ''} className="select" onChange={(catid) => this.changeInterfaceCat(record._id, catid)}>
{this.props.catList.map(cat => { {this.props.catList.map(cat => {

View File

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