소스 검색

fix: setChannels 改用 query string 传参匹配后端 @RequestParam

Developer 3 일 전
부모
커밋
b35f241d07
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      pagesMy/familyMemberVindicate.vue

+ 1 - 4
pagesMy/familyMemberVindicate.vue

@@ -200,10 +200,7 @@
 	}
 
 	const setMemberChannel = (memberId) => {
-		proxy.$api.post('/member/setChannels', {
-			memberId,
-			channelIds: selectedChannelId.value
-		}).then(({ data: res }) => {
+		proxy.$api.post(`/member/setChannels?memberId=${memberId}&channelIds=${selectedChannelId.value}`, {}).then(({ data: res }) => {
 			if (res.code !== 0) proxy.$showToast(res.msg)
 		}).catch(() => {
 			proxy.$showToast('渠道设置失败,请稍后重试')