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

fix

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