Handy_Cao 1 rok pred
rodič
commit
9b68cc1e9f

+ 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,
     })
 }