diff --git a/src/views/accounts/Profile.jsx b/src/views/accounts/Profile.jsx index bb59c0a..316e16d 100644 --- a/src/views/accounts/Profile.jsx +++ b/src/views/accounts/Profile.jsx @@ -5,6 +5,7 @@ import useAuthStore from '@/stores/AuthStore' import { fetchJSON } from '@/utils/request' import { Conditional } from '@/components/Conditional' import { PERM_USE_WHATSAPP } from '@/stores/AuthStore' +import { WAI_HOST } from '@/config' function Profile() { const { notification } = App.useApp() @@ -47,7 +48,7 @@ function Profile() { const phone = loginUser.whatsAppNo fetchJSON( - 'http://localhost:3031/api/v1/whatsapp/channels/qrcode', + `${WAI_HOST}/channels/qrcode`, { phone }) .then(r => { setQRCode(r.result.qr)