1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 08:19:15 +08:00

feat: 面板帮助文档跳转到具体目录 (#3992)

This commit is contained in:
ssongliu 2024-02-27 11:30:13 +08:00 committed by GitHub
parent 279b3942b4
commit 1ecc53dad3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 5 deletions

View File

@ -26,7 +26,7 @@
<el-link
style="font-size: 12px; margin-left: 5px"
icon="Position"
@click="toDoc()"
@click="toDoc(true)"
type="primary"
>
{{ $t('firewall.quickJump') }}
@ -72,7 +72,7 @@
<el-link
style="font-size: 12px; margin-left: 5px"
icon="Position"
@click="toDoc()"
@click="toDoc(false)"
type="primary"
>
{{ $t('firewall.quickJump') }}
@ -206,8 +206,9 @@ function callback(error: any) {
}
}
const toDoc = () => {
window.open('https://1panel.cn/docs/user_manual/settings/', '_blank', 'noopener,noreferrer');
const toDoc = (isConf: boolean) => {
let item = isConf ? '#onedrive' : '#onedrive_1';
window.open('https://1panel.cn/docs/user_manual/settings/' + item, '_blank', 'noopener,noreferrer');
};
const onSubmit = async (formEl: FormInstance | undefined) => {

View File

@ -105,7 +105,7 @@ const handleClose = () => {
};
const toDoc = () => {
window.open('https://1panel.cn/docs/user_manual/settings/', '_blank', 'noopener,noreferrer');
window.open('https://1panel.cn/docs/user_manual/settings/#webdav-alist', '_blank', 'noopener,noreferrer');
};
const onSubmit = async (formEl: FormInstance | undefined) => {