Skip to content
代码片段 群组 项目
提交 9c5d5dcb 编辑于 作者: Roy Zwambag's avatar Roy Zwambag
浏览文件

Move memoryReportPath to a computed property and remove brackets

上级 558e451c
No related branches found
No related tags found
无相关合并请求
......@@ -124,6 +124,9 @@ export default {
const fileName = this.requests[0].truncatedUrl;
return `${fileName}_perf_bar_${Date.now()}.json`;
},
memoryReportPath() {
return mergeUrlParams({ performance_bar: 'memory' }, window.location.href);
},
},
mounted() {
this.currentRequest = this.requestId;
......@@ -138,9 +141,6 @@ export default {
window.location.href,
);
},
memoryReportPath() {
return mergeUrlParams({ performance_bar: 'memory' }, window.location.href);
},
},
safeHtmlConfig: { ADD_TAGS: ['gl-emoji'] },
};
......@@ -190,7 +190,7 @@ export default {
id="peek-memory-report"
class="view"
>
<a class="gl-text-blue-200" :href="memoryReportPath()">{{
<a class="gl-text-blue-200" :href="memoryReportPath">{{
s__('PerformanceBar|Memory report')
}}</a>
</div>
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册