提交 e8b4b4e5 编写于 作者: W WeiFeng-mindinsight

UI modify of profiler tutorial

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