修改wai-server API 路由: `/wai-server/v1`

dev/supplier-email-drawer
Lei OT 9 months ago
parent ed1e7ce2a0
commit 9aa9a574af

@ -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)

Loading…
Cancel
Save