mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-18 01:06:39 +08:00
fix: fixed bug for ssl websocket url
This commit is contained in:
parent
15b77ad10a
commit
b06a065d44
15
.gitignore
vendored
15
.gitignore
vendored
@ -1,15 +1,7 @@
|
|||||||
# Logs
|
# Logs
|
||||||
logs
|
logs
|
||||||
*.log
|
*.log
|
||||||
npm-debug.log*
|
|
||||||
yarn-debug.log*
|
|
||||||
yarn-error.log*
|
|
||||||
pnpm-debug.log*
|
|
||||||
lerna-debug.log*
|
|
||||||
|
|
||||||
node_modules
|
|
||||||
web/dist
|
|
||||||
dist-ssr
|
|
||||||
*.local
|
*.local
|
||||||
|
|
||||||
# Editor directories and files
|
# Editor directories and files
|
||||||
@ -22,10 +14,3 @@ dist-ssr
|
|||||||
*.njsproj
|
*.njsproj
|
||||||
*.sln
|
*.sln
|
||||||
*.sw?
|
*.sw?
|
||||||
src/tmp
|
|
||||||
src/bin
|
|
||||||
src/data
|
|
||||||
web/.env.development
|
|
||||||
web/.env.test
|
|
||||||
web/.env.test2
|
|
||||||
config.toml
|
|
||||||
|
BIN
api/go/chatgpt-v3-amd64-linux
Executable file
BIN
api/go/chatgpt-v3-amd64-linux
Executable file
Binary file not shown.
11
web/.gitignore
vendored
Normal file
11
web/.gitignore
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# Logs
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
pnpm-debug.log*
|
||||||
|
lerna-debug.log*
|
||||||
|
|
||||||
|
node_modules
|
||||||
|
dist
|
||||||
|
.env.development
|
||||||
|
|
@ -234,7 +234,8 @@ if (!user.value) {
|
|||||||
loadChats();
|
loadChats();
|
||||||
// 创建新的会话
|
// 创建新的会话
|
||||||
newChat();
|
newChat();
|
||||||
}).catch(() => {
|
}).catch((e) => {
|
||||||
|
console.log(e)
|
||||||
ElMessage.error('获取聊天角色失败')
|
ElMessage.error('获取聊天角色失败')
|
||||||
})
|
})
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
@ -421,7 +422,7 @@ const connect = function (chat_id, role_id) {
|
|||||||
const _sessionId = getSessionId();
|
const _sessionId = getSessionId();
|
||||||
let host = process.env.VUE_APP_WS_HOST
|
let host = process.env.VUE_APP_WS_HOST
|
||||||
if (host === '') {
|
if (host === '') {
|
||||||
if (location.protocol === 'https') {
|
if (location.protocol === 'https:') {
|
||||||
host = 'wss://'+location.host;
|
host = 'wss://'+location.host;
|
||||||
} else {
|
} else {
|
||||||
host = 'ws://'+location.host;
|
host = 'ws://'+location.host;
|
||||||
|
@ -50,8 +50,8 @@ import {useRouter} from "vue-router";
|
|||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const title = ref('ChatGPT Plus 用户登录');
|
const title = ref('ChatGPT Plus 用户登录');
|
||||||
const username = ref('geekmaster');
|
const username = ref(process.env.VUE_APP_USER);
|
||||||
const password = ref('12345678');
|
const password = ref(process.env.VUE_APP_PASS);
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
document.addEventListener('keyup', (e) => {
|
document.addEventListener('keyup', (e) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user