mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
feat: add Vite proxy, change terminal to other channel
This commit is contained in:
1 parent
c3e735b627
commit
c248004484
5 files changed
+11
-8
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import axios from 'axios'
|
||||
|
||||
const api = axios.create({
|
||||
baseURL: 'https://odyssey.wancat.cc/api/v1',
|
||||
baseURL: '/api',
|
||||
})
|
||||
|
||||
export default api
|
||||
@@ -1,7 +1,5 @@
|
||||
import io from 'socket.io-client'
|
||||
|
||||
const host = 'wss://odyssey.wancat.cc'
|
||||
|
||||
class SocketWrapper {
|
||||
constructor() {
|
||||
this.socket = null
|
||||
@@ -14,7 +12,7 @@ class SocketWrapper {
|
||||
this.socket.disconnect()
|
||||
}
|
||||
|
||||
this.socket = io(host, {
|
||||
this.socket = io('', {
|
||||
query: {
|
||||
session_id: session._id,
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user