mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-21 05:19:42 +08:00
Merge branch 'dev-1.2.0'
This commit is contained in:
commit
9dbeacc799
@ -2,10 +2,10 @@
|
||||
#### Bug Fixed
|
||||
1. 成员如果第一次添加成员时选择组长,接着再添加下一个成员,如果select是默认的开发者,这时候会出现与上次select相同的值
|
||||
2. 如果添加了一个不存在的成员还是会提示添加成功,并且发送的数据是原来发送成功的数据,这里需要重置初始值并在未找到对应用户名时对未找到的人名应该提示用户不存在
|
||||
3. 测试集合中的左侧 Menu 拖动的时候右侧的List需要跟随变动
|
||||
3. Fix 接口集自动化测试 header 没有解析 mock 和 变量参数
|
||||
4. 在接口开发阶段,多个人并行改接口,如果最后一个人改之前没刷新页面,会把之前的人修改过的都冲掉了
|
||||
5. 修复cross-request,response header字段重复bug
|
||||
6. Fix 接口集自动化测试 header 没有解析 mock 和 变量参数
|
||||
|
||||
|
||||
#### Feature
|
||||
1. 优化了分组添加,编辑交互
|
||||
|
@ -259,27 +259,28 @@ export default class InterfaceColMenu extends Component {
|
||||
|
||||
const dragColId = this.props.interfaceColList[dragColIndex]._id;
|
||||
|
||||
if (id.indexOf('col') === -1) {
|
||||
if (dropColId !== dragColId) {
|
||||
await axios.post('/api/col/up_case', { id: id.split('_')[1], col_id: dropColId });
|
||||
} else {
|
||||
let caseList = this.props.interfaceColList[dropColIndex].caseList;
|
||||
const dropIndex = e.node.props.pos.split('-')[2];
|
||||
const dragIndex = e.dragNode.props.pos.split('-')[2];
|
||||
// caseList[dropIndex] = [caseList[dragIndex], caseList[dragIndex] = caseList[dropIndex]][0]
|
||||
let newArr = [].concat(caseList);
|
||||
newArr[dragIndex] = caseList[dropIndex];
|
||||
newArr[dropIndex] = caseList[dragIndex];
|
||||
let changes = [];
|
||||
newArr.forEach((item, index) => {
|
||||
changes.push({
|
||||
id: item._id,
|
||||
index: index
|
||||
})
|
||||
})
|
||||
axios.post('/api/col/up_col_index', changes).then()
|
||||
}
|
||||
|
||||
if (id.indexOf('col') === -1 && dropColId !== dragColId) {
|
||||
// if (dropColId !== dragColId) {
|
||||
//
|
||||
// }
|
||||
// else {
|
||||
// let caseList = this.props.interfaceColList[dropColIndex].caseList;
|
||||
// const dropIndex = e.node.props.pos.split('-')[2];
|
||||
// const dragIndex = e.dragNode.props.pos.split('-')[2];
|
||||
// // caseList[dropIndex] = [caseList[dragIndex], caseList[dragIndex] = caseList[dropIndex]][0]
|
||||
// let newArr = [].concat(caseList);
|
||||
// newArr[dragIndex] = caseList[dropIndex];
|
||||
// newArr[dropIndex] = caseList[dragIndex];
|
||||
// let changes = [];
|
||||
// newArr.forEach((item, index) => {
|
||||
// changes.push({
|
||||
// id: item._id,
|
||||
// index: index
|
||||
// })
|
||||
// })
|
||||
// axios.post('/api/col/up_col_index', changes).then()
|
||||
// }
|
||||
await axios.post('/api/col/up_case', { id: id.split('_')[1], col_id: dropColId });
|
||||
this.props.fetchInterfaceColList(projectId);
|
||||
this.props.setColData({ currColId: +this.props.currColId, isShowCol: true, isRander: true })
|
||||
|
||||
|
@ -191,3 +191,11 @@ body, h1, h2, h3, h4, h5, h6 {
|
||||
border: 1px solid;
|
||||
border-color: #fff;
|
||||
}
|
||||
|
||||
.ydoc .navbar-toggle{
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.ydoc .ydoc-nav .navbar-left li:nth-child(1){
|
||||
display: none;
|
||||
}
|
@ -191,3 +191,11 @@ body, h1, h2, h3, h4, h5, h6 {
|
||||
border: 1px solid;
|
||||
border-color: #fff;
|
||||
}
|
||||
|
||||
.ydoc .navbar-toggle{
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.ydoc .ydoc-nav .navbar-left li:nth-child(1){
|
||||
display: none;
|
||||
}
|
@ -1 +1 @@
|
||||
window.WEBPACK_ASSETS = {"index.js":{"js":"index@45bbc08f1c61a1014932.js","css":"index@45bbc08f1c61a1014932.css"},"lib":{"js":"lib@9521c6250635e5a8893a.js"},"lib2":{"js":"lib2@dbcc326d4fe3e4473316.js"},"manifest":{"js":"manifest@b67af9f8b578904e66c5.js"}}
|
||||
window.WEBPACK_ASSETS = {"index.js":{"js":"index@3ea8285572a5ca4441ca.js","css":"index@3ea8285572a5ca4441ca.css"},"lib":{"js":"lib@9521c6250635e5a8893a.js"},"lib2":{"js":"lib2@dbcc326d4fe3e4473316.js"},"manifest":{"js":"manifest@b67af9f8b578904e66c5.js"}}
|
File diff suppressed because one or more lines are too long
Binary file not shown.
Loading…
Reference in New Issue
Block a user