|
@@ -40,16 +40,21 @@ const closeCurrentTab = () => {
|
|
|
const setTabTitle = () => {
|
|
|
setTitle(new Date().getTime().toString())
|
|
|
}
|
|
|
+
|
|
|
+const setAnalysisTitle = () => {
|
|
|
+ setTitle(`分析页-${new Date().getTime().toString()}`, '/dashboard/analysis')
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
<ContentWrap title="useTagsView">
|
|
|
- <ElButton @click="closeAllTabs"> 关闭所有标签页 </ElButton>
|
|
|
- <ElButton @click="closeLeftTabs"> 关闭左侧标签页 </ElButton>
|
|
|
- <ElButton @click="closeRightTabs"> 关闭右侧标签页 </ElButton>
|
|
|
- <ElButton @click="closeOtherTabs"> 关闭其他标签页 </ElButton>
|
|
|
- <ElButton @click="closeCurrentTab"> 关闭当前标签页 </ElButton>
|
|
|
- <ElButton @click="refresh"> 刷新当前标签页 </ElButton>
|
|
|
- <ElButton @click="setTabTitle"> 修改当前标题 </ElButton>
|
|
|
+ <ElButton type="primary" @click="closeAllTabs"> 关闭所有标签页 </ElButton>
|
|
|
+ <ElButton type="primary" @click="closeLeftTabs"> 关闭左侧标签页 </ElButton>
|
|
|
+ <ElButton type="primary" @click="closeRightTabs"> 关闭右侧标签页 </ElButton>
|
|
|
+ <ElButton type="primary" @click="closeOtherTabs"> 关闭其他标签页 </ElButton>
|
|
|
+ <ElButton type="primary" @click="closeCurrentTab"> 关闭当前标签页 </ElButton>
|
|
|
+ <ElButton type="primary" @click="refresh"> 刷新当前标签页 </ElButton>
|
|
|
+ <ElButton type="primary" @click="setTabTitle"> 修改当前标题 </ElButton>
|
|
|
+ <ElButton type="primary" @click="setAnalysisTitle"> 修改分析页标题 </ElButton>
|
|
|
</ContentWrap>
|
|
|
</template>
|