diff --git a/src/components/Menu/src/BasicMenu.vue b/src/components/Menu/src/BasicMenu.vue index cf550f1..383149c 100644 --- a/src/components/Menu/src/BasicMenu.vue +++ b/src/components/Menu/src/BasicMenu.vue @@ -130,16 +130,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: { 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(), }, },