fix: Guest account can't access alerts properly

This commit is contained in:
enzi221
2025-05-25 00:55:14 +09:00
parent 4d54a35373
commit a5fbc43be4

View File

@@ -63,7 +63,7 @@
<svelte:window onmessage={async (e) => {
if(e.origin.startsWith("https://sv.risuai.xyz") || e.origin.startsWith("http://127.0.0.1") || e.origin === window.location.origin){
if(e.data.msg.data.vaild && $alertStore.type === 'login'){
if(e.data.msg?.data?.vaild && $alertStore.type === 'login'){
$alertStore = {
type: 'none',
msg: JSON.stringify(e.data.msg)