单点登录
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user