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

This commit is contained in:
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) => {