Handy_Cao 1 år sedan
förälder
incheckning
9b68cc1e9f
2 ändrade filer med 4 tillägg och 5 borttagningar
  1. 3 1
      src/business/user/account.ts
  2. 1 4
      src/services/api/account/index.ts

+ 3 - 1
src/business/user/account.ts

@@ -210,7 +210,9 @@ export function useRequestWillFace() {
 export function useRequestAsignWillFace() {
     const loading = shallowRef(false)
 
-    const asignWillFaceFormData = reactive<Model.WillFaceReq>({})
+    const asignWillFaceFormData = reactive<Model.WillFaceReq>({
+        userId: loginStore.userId
+    })
 
     const asignWillFace = async () => {
         try {

+ 1 - 4
src/services/api/account/index.ts

@@ -241,10 +241,7 @@ export function requestAsignWillFace(config: RequestConfig<Model.WillFaceReq> =
     return http.commonRequest<Model.WillFaceRsq>({
         method: 'post',
         url: '/Asign/WillFace',
-        params: {
-            userId: getUserId(),
-            ...config.data
-        },
+        data: config.data,
     })
 }