单点登录

This commit is contained in:
2025-04-16 15:56:48 +08:00
parent f764560b5f
commit 05cad57358
3 changed files with 41 additions and 38 deletions

View File

@@ -3,6 +3,7 @@ import { ref, onMounted } from 'vue';
const bridge = ref(null);
// 初始化 QWebChannel
const initBridge = () => {
if (/localhost/.test(window.location.href)) return
new QWebChannel(qt.webChannelTransport, (channel) => {
bridge.value = channel.objects.bridge;
});