feat: Modify document address (#7381)

This commit is contained in:
2024-12-17 10:28:12 +08:00 committed by GitHub
parent f58ed5614e
commit 4c03a482bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View file

@ -216,7 +216,10 @@ function callback(error: any) {
}
const toDoc = (isConf: boolean) => {
let item = isConf ? '#onedrive' : '#onedrive_1';
let item = isConf ? '#32-onedrive' : '#33-onedrive';
if (globalStore.isIntl) {
item = isConf ? '#using-your-own-client-info-for-onedrive' : '#auth-code-of-onedrive';
}
window.open(globalStore.docsUrl + '/user_manual/settings/' + item, '_blank', 'noopener,noreferrer');
};

View file

@ -114,7 +114,8 @@ const handleClose = () => {
};
const toDoc = () => {
window.open(globalStore.docsUrl + '/user_manual/settings/#34-webdav-alist', '_blank', 'noopener,noreferrer');
const uri = globalStore.isIntl ? '#webdav-with-alist' : '#34-webdav-alist';
window.open(globalStore.docsUrl + '/user_manual/settings/' + uri, '_blank', 'noopener,noreferrer');
};
const onSubmit = async (formEl: FormInstance | undefined) => {