提交 4cf2149b 编写于 作者: M mxd

fix

上级 b89c5eeb
......@@ -129,7 +129,6 @@ export default {
// 数据排序规则,true:升序,false:降序
treeSort: true,
groupChooseVisible: false,
recentlyOpenedVisible: false,
srcId: '',
// 新建分组对象
createGroupObj: {
......@@ -175,10 +174,6 @@ export default {
bus.$emit('open', item)
this.currentFileItem = item
},
recentlyOpened(item){
this.open(item)
this.recentlyOpenedVisible = false
},
// 初始化数据
initData() {
bus.$emit('status', '正在初始化接口列表')
......@@ -861,8 +856,7 @@ export default {
position(id){
this.$nextTick(()=> {
this.rebuildTree(false)
this.listChildrenData.forEach(item => item.selectRightItem = item.id === id || item.tmp_id === id)
goToAnchor('.ma-tree-select')
this.openItemById(id)
})
},
// 根据id打开对应item
......@@ -879,6 +873,7 @@ export default {
if (cache) {
this.$nextTick(() => {
this.open(cache)
this.$nextTick(() => goToAnchor('.ma-tree-select'))
})
}
})
......
......@@ -809,8 +809,7 @@ export default {
position(id){
this.$nextTick(()=> {
this.rebuildTree(false)
this.listChildrenData.forEach(item => item.selectRightItem = item.id === id || item.tmp_id === id)
goToAnchor('.ma-tree-select')
this.openItemById(id)
})
},
// 根据id打开对应item
......@@ -827,6 +826,7 @@ export default {
if (cache) {
this.$nextTick(() => {
this.open(cache)
this.$nextTick(() => goToAnchor('.ma-tree-select'))
})
}
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册