From 9aa9a574af4ca8804ce61f2b2ab9410e4fa6db4a Mon Sep 17 00:00:00 2001 From: Lei OT Date: Tue, 24 Dec 2024 15:37:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9wai-server=20API=20=E8=B7=AF?= =?UTF-8?q?=E7=94=B1:=20`/wai-server/v1`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/accounts/Profile.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)