i use this code to show a window:
import {WebviewWindow} from "@tauri-apps/api/webviewWindow";
async function handleKeydown(){
const appWindow = WebviewWindow.getByLabel('tool')
console.log(appWindow);
console.log(appWindow?.window);
console.log(await appWindow?.isVisible())
// await appWindow?.show()
}
but encounter some problem:
_WebviewWindow {label: 'tool', listeners: {…}}
POST http://ipc.localhost/plugin%3Awindow%7Cis_visible 400 (Bad Request)
:1420/#/CandleChart:1 Uncaught (in promise) missing Origin header

I am a beginner in the front-end, and I am not sure if it is because tauri is not properly configured or just because of a front-end issue.
I have reviewed the documentation and issue, but did not find any similar issues, so how should I solve them?
i use this code to show a window:
but encounter some problem:
I am a beginner in the front-end, and I am not sure if it is because tauri is not properly configured or just because of a front-end issue.
I have reviewed the documentation and issue, but did not find any similar issues, so how should I solve them?