fix: 修复帮助文档跳转404

This commit is contained in:
TsMask
2023-11-28 16:43:51 +08:00
parent a22213eae3
commit 534f261bd4
3 changed files with 33 additions and 11 deletions

View File

@@ -120,6 +120,16 @@ function fnComponentSetName(component: any, to: any) {
// 清空导航栏标签
tabsStore.clear();
/**系统使用手册跳转 */
function fnClickHelpDoc(language?: string) {
const routeData = router.resolve({ name: 'HelpDoc' });
let href = routeData.href;
if (language) {
href = `${routeData.href}?language=${language}`;
}
window.open(href, '_blank');
}
/**
* 国际化翻译转换
*/
@@ -285,9 +295,8 @@ document.addEventListener('visibilitychange', function () {
</a-button>
<a-button
type="link"
href="/help"
target="_blank"
size="small"
@click="fnClickHelpDoc()"
v-if="appStore.getHelpDoc !== '#'"
>
{{ t('loayouts.basic.helpDoc') }}