Browse Source

Modify the bug of debugger watchpointhit focus

tags/v1.1.0
fengxuefeng 5 years ago
parent
commit
06b4275684
2 changed files with 13 additions and 4 deletions
  1. +5
    -2
      mindinsight/ui/src/mixins/debuggerMixin.vue
  2. +8
    -2
      mindinsight/ui/src/views/debugger/debugger.vue

+ 5
- 2
mindinsight/ui/src/mixins/debuggerMixin.vue View File

@@ -1560,6 +1560,7 @@ export default {
lists: [],
selected: false,
id: hit.node_name,
graph_name: hit.graph_name,
};
if (hit.tensors && hit.tensors.length) {
hit.tensors.forEach((i) => {
@@ -1636,6 +1637,8 @@ export default {
if (this.graphFiles.value === this.$t('debugger.all')) {
delete params.params.graph_name;
params.params.name = `${this.watchPointHits[key].graph_name}/${name}`;
} else {
this.graphFiles.value = this.watchPointHits[key].graph_name;
}
this.watchPointHits.forEach((val, index) => {
if (key === index) {
@@ -1662,8 +1665,8 @@ export default {
}
this.querySingleNode(
JSON.parse(JSON.stringify(graph)),
name,
false,
params.params.name,
true,
);
}
},


+ 8
- 2
mindinsight/ui/src/views/debugger/debugger.vue View File

@@ -317,11 +317,11 @@ limitations under the License.
:class="{collapse: collapseTable}">
<img :src="require('@/assets/images/all-drop-down.png')"
v-show="collapseTable"
@click="collapseTable=!collapseTable"
@click="rightCollapse()"
alt="" />
<img :src="require('@/assets/images/all-uptake.png')"
v-show="!collapseTable"
@click="collapseTable=!collapseTable"
@click="rightCollapse()"
alt="" />

<el-tabs v-model="tabs.activeName">
@@ -1616,6 +1616,12 @@ export default {
path: '/summary-manage',
});
},
rightCollapse() {
this.collapseTable = !this.collapseTable;
setTimeout(() => {
this.initSvg(false);
}, 500);
},
},
destroyed() {
window.removeEventListener(


Loading…
Cancel
Save