Ver Fonte

更新code

黄琪勇 há 1 ano atrás
pai
commit
a573625171
2 ficheiros alterados com 3 adições e 3 exclusões
  1. 2 2
      src/api/user.api.ts
  2. 1 1
      src/viewsframe/login/login.vue

+ 2 - 2
src/api/user.api.ts

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

+ 1 - 1
src/viewsframe/login/login.vue

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