提交 09532e3d 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!582 UI modify of profiler tutorial

Merge pull request !582 from 黄伟锋/myMaster
......@@ -259,6 +259,9 @@
"anchor": ["desc"],
"url": [
"https://www.mindspore.cn/tutorial/en/master/advanced_use/performance_profiling.html"
],
"gpuUrl": [
"https://www.mindspore.cn/tutorial/zh-CN/master/advanced_use/performance_profiling_gpu.html"
]
},
"step_trace-proposer_type_label": {
......
......@@ -258,6 +258,9 @@
"anchor": ["desc"],
"url": [
"https://www.mindspore.cn/tutorial/zh-CN/master/advanced_use/performance_profiling.html"
],
"gpuUrl": [
"https://www.mindspore.cn/tutorial/zh-CN/master/advanced_use/performance_profiling_gpu.html"
]
},
"step_trace-proposer_type_label": {
......
......@@ -260,7 +260,7 @@ export default {
divDom.setAttribute('class', 'content-style');
divDom.innerHTML = `<div class="content-icon el-icon-caret-right"></div>
<div class="helper-content-style">
<a target="_blank" href="${this.$t(`profiling`)[item].url[0]}">
<a target="_blank" href="${this.$t(`profiling`)[item].gpuUrl[0]}">
${this.$t(`profiling`)[item].desc}</a></div>`;
helperDiv.appendChild(divDom);
} else {
......@@ -272,7 +272,7 @@ export default {
const desc = anchorContent.relpace(
anchorList[i],
`<a target="_blank" href="${
this.$t(`profiling`)[item].url[i]
this.$t(`profiling`)[item].gpuUrl[i]
}">
${anchorList[i]}</a>`,
);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册