|
|
|
@ -6,7 +6,8 @@
|
|
|
|
<div style="padding: 14px; margin-left: 10px; line-height: 15px;">
|
|
|
|
<div style="padding: 14px; margin-left: 10px; line-height: 15px;">
|
|
|
|
<div>ChatGPT Next Web</div>
|
|
|
|
<div>ChatGPT Next Web</div>
|
|
|
|
<div style="margin-top: 20px;font-size: 13px;">最常用的GPT Web客户端,只需填入本平台KEY即可使用</div>
|
|
|
|
<div style="margin-top: 20px;font-size: 13px;">最常用的GPT Web客户端,只需填入本平台KEY即可使用</div>
|
|
|
|
<el-button style="margin-top: 20px;" @click="goGptWeb()">直接使用</el-button>
|
|
|
|
<el-button style="margin-top: 20px;" @click="goGptWeb()">直接使用</el-button><br>
|
|
|
|
|
|
|
|
<span style="font-size:12px;color:gray;">(KEY已经复制进剪切板,直接在设置中粘贴即可)</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
|
@ -76,6 +77,18 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function goGptWeb() {
|
|
|
|
function goGptWeb() {
|
|
|
|
|
|
|
|
// 获取需要复制的元素以及元素内的文本内容
|
|
|
|
|
|
|
|
const text = userKey.value;
|
|
|
|
|
|
|
|
// 添加一个input元素放置需要的文本内容
|
|
|
|
|
|
|
|
const input = document.createElement("input");
|
|
|
|
|
|
|
|
input.value = text;
|
|
|
|
|
|
|
|
document.body.appendChild(input);
|
|
|
|
|
|
|
|
// 选中并复制文本到剪切板
|
|
|
|
|
|
|
|
input.select();
|
|
|
|
|
|
|
|
document.execCommand("copy");
|
|
|
|
|
|
|
|
// 移除input元素
|
|
|
|
|
|
|
|
document.body.removeChild(input);
|
|
|
|
|
|
|
|
proxy.$modal.msgSuccess("复制成功");
|
|
|
|
window.open("https://next.api2gpt.com/")
|
|
|
|
window.open("https://next.api2gpt.com/")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|