@@ -1,10 +1,10 @@
import { httpAxios, httpAxiosNoNprogress, httpAxios_gym, httpAxios_gyt } from "@/api/ApiInstance"
/** 获取二维码 */
-export const createQrcodeApi = () => {
+export const createQrcodeApi = (uuid?: string) => {
return httpAxios.axioseRquest({
method: "get",
- url: "/open/qrcode/create"
+ url: "/open/qrcode/create?uuid=" + uuid
})
}
@@ -52,7 +52,7 @@ let _time: number
handleCreateQrcode()
function handleCreateQrcode() {
- httpAjax(createQrcodeApi).then(res => {
+ httpAjax(createQrcodeApi, uuid.value).then(res => {
if (res.code === 200) {
uuid.value = res.data.uuid
handleQrcodeStatus()