diff --git a/src/components/Menu/src/BasicMenu.vue b/src/components/Menu/src/BasicMenu.vue index 8c8f320..8bfdab4 100644 --- a/src/components/Menu/src/BasicMenu.vue +++ b/src/components/Menu/src/BasicMenu.vue @@ -131,16 +131,16 @@ async function handleMenuClick({ item, key }: { item: any; key: string; keyPath: string[] }) { if (item.title === '健康银行') { open(); - const url = viteOutUrl; - console.log(url); - console.log(useGlobSetting()); await defHttp .get({ url: '/health-system/api/sys/encryptInfo', params: { str: qs.stringify({ scheme: apiUrl.split('://')[0], - host: apiUrl.split('://')[1].substring(0, apiUrl.split('://')[1].indexOf(':')), + host: + apiUrl.split('://')[1].indexOf(':') !== -1 + ? apiUrl.split('://')[1].substring(0, apiUrl.split('://')[1].indexOf(':')) + : apiUrl.split('://')[1], tokenF: getToken(), }), },