diff --git a/src/components/Menu/src/BasicMenu.vue b/src/components/Menu/src/BasicMenu.vue index 63804cf..8c8f320 100644 --- a/src/components/Menu/src/BasicMenu.vue +++ b/src/components/Menu/src/BasicMenu.vue @@ -45,6 +45,7 @@ import { getToken } from '/@/utils/auth'; import { useLoading } from '/@/components/Loading'; import { useGlobSetting } from '/@/hooks/setting'; + import qs from 'qs'; const { viteOutUrl, apiUrl } = useGlobSetting(); export default defineComponent({ @@ -137,11 +138,11 @@ .get({ url: '/health-system/api/sys/encryptInfo', params: { - str: { + str: qs.stringify({ scheme: apiUrl.split('://')[0], - host: apiUrl.split('://')[1], + host: apiUrl.split('://')[1].substring(0, apiUrl.split('://')[1].indexOf(':')), tokenF: getToken(), - }, + }), }, }) .then((res) => {