fix: OneDrive 增加操作描述信息 (#1513)

pull/1516/head
ssongliu 2023-07-03 15:14:15 +08:00 committed by GitHub
parent dd9f2edf40
commit 01c08a8ef9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 0 deletions

View File

@ -965,6 +965,8 @@ const message = {
backupDir: 'Backup dir',
isCN: 'Domestic version',
code: 'Auth code',
codeHelper:
'Please click on the "Acquire" button, then login to OneDrive and copy the content after "code" in the redirected link. Paste it into this input box. For specific instructions, please refer to the official documentation.',
loadCode: 'Acquire',
COS: 'Tencent COS',
KODO: 'Qiniu Kodo',

View File

@ -924,6 +924,8 @@ const message = {
backupDir: '',
isCN: '',
code: '',
codeHelper:
' OneDrive code ',
loadCode: '',
COS: ' COS',
KODO: ' Kodo',

View File

@ -930,6 +930,8 @@ const message = {
backupDir: '',
isCN: '',
code: '',
codeHelper:
' OneDrive code ',
loadCode: '',
COS: ' COS',
KODO: ' Kodo',

View File

@ -59,6 +59,17 @@
<el-button @click="jumpAzure">{{ $t('setting.loadCode') }}</el-button>
</template>
</el-input>
<span class="input-help">
{{ $t('setting.codeHelper') }}
<el-link
style="font-size: 12px; margin-left: 5px"
icon="Position"
@click="toDoc()"
type="primary"
>
{{ $t('firewall.quickJump') }}
</el-link>
</span>
</el-form-item>
<el-form-item
v-if="dialogData.rowData!.type === 'S3' || dialogData.rowData!.type === 'COS'"
@ -320,6 +331,10 @@ function hasEndpoint(val: string) {
return val === 'OSS' || val === 'S3';
}
const toDoc = () => {
window.open('https://1panel.cn/docs/user_manual/settings/', '_blank');
};
const getBuckets = async (formEl: FormInstance | undefined) => {
if (!formEl) return;
formEl.validate(async (valid) => {