🐛 Fix ws security blocked
This commit is contained in:
parent
e36b40614d
commit
4281952c87
@ -4,8 +4,9 @@
|
|||||||
<option name="autoReloadType" value="ALL" />
|
<option name="autoReloadType" value="ALL" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="3fefb2c4-b6f9-466b-a523-53352e8d6f95" name="更改" comment=":sparkles: Get myself current status API">
|
<list default="true" id="3fefb2c4-b6f9-466b-a523-53352e8d6f95" name="更改" comment=":bug: Fix miscall function">
|
||||||
<change beforePath="$PROJECT_DIR$/pkg/internal/server/api/index.go" beforeDir="false" afterPath="$PROJECT_DIR$/pkg/internal/server/api/index.go" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/web/src/stores/notifications.ts" beforeDir="false" afterPath="$PROJECT_DIR$/web/src/stores/notifications.ts" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
@ -151,7 +152,6 @@
|
|||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
<component name="VcsManagerConfiguration">
|
<component name="VcsManagerConfiguration">
|
||||||
<MESSAGE value=":bug: Fix registration service issue" />
|
|
||||||
<MESSAGE value=":bug: Fix avatar url missing endpoint prefix" />
|
<MESSAGE value=":bug: Fix avatar url missing endpoint prefix" />
|
||||||
<MESSAGE value=":ambulance: Fix query services too much 429" />
|
<MESSAGE value=":ambulance: Fix query services too much 429" />
|
||||||
<MESSAGE value=":ambulance: Fix nil map panic" />
|
<MESSAGE value=":ambulance: Fix nil map panic" />
|
||||||
@ -176,7 +176,8 @@
|
|||||||
<MESSAGE value=":bug: Fix clear status affected the statutes cleared before" />
|
<MESSAGE value=":bug: Fix clear status affected the statutes cleared before" />
|
||||||
<MESSAGE value=":sparkles: Get self-current status API" />
|
<MESSAGE value=":sparkles: Get self-current status API" />
|
||||||
<MESSAGE value=":sparkles: Get myself current status API" />
|
<MESSAGE value=":sparkles: Get myself current status API" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value=":sparkles: Get myself current status API" />
|
<MESSAGE value=":bug: Fix miscall function" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value=":bug: Fix miscall function" />
|
||||||
</component>
|
</component>
|
||||||
<component name="VgoProject">
|
<component name="VgoProject">
|
||||||
<settings-migrated>true</settings-migrated>
|
<settings-migrated>true</settings-migrated>
|
||||||
|
@ -39,7 +39,8 @@ export const useNotifications = defineStore("notifications", () => {
|
|||||||
async function connect() {
|
async function connect() {
|
||||||
if (!(checkLoggedIn())) return
|
if (!(checkLoggedIn())) return
|
||||||
|
|
||||||
const uri = `ws://${window.location.host}/api/ws`
|
const protocol = location.protocol.replace("http", "ws")
|
||||||
|
const uri = `${protocol}//${window.location.host}/api/ws`
|
||||||
|
|
||||||
socket = new WebSocket(uri + `?tk=${getAtk() as string}`)
|
socket = new WebSocket(uri + `?tk=${getAtk() as string}`)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user