|
@@ -10,9 +10,17 @@ import type {
|
|
|
} from './type'
|
|
} from './type'
|
|
|
|
|
|
|
|
export const getTaskContentConfigByTaskTypeIdApi = (id: string) => {
|
|
export const getTaskContentConfigByTaskTypeIdApi = (id: string) => {
|
|
|
|
|
+ // #ifdef MP-WEIXIN
|
|
|
return http.get<TaskContentConfigByTaskTypeIdResponse>(
|
|
return http.get<TaskContentConfigByTaskTypeIdResponse>(
|
|
|
`/admin/api/getTaskContentConfigByTaskTypeId/${id}`
|
|
`/admin/api/getTaskContentConfigByTaskTypeId/${id}`
|
|
|
)
|
|
)
|
|
|
|
|
+ // #endif
|
|
|
|
|
+
|
|
|
|
|
+ // #ifdef H5
|
|
|
|
|
+ return http.get<TaskContentConfigByTaskTypeIdResponse>(
|
|
|
|
|
+ `/admin/api/getTaskContentConfigByTaskTypeByShareId/${id}`
|
|
|
|
|
+ )
|
|
|
|
|
+ // #endif
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export const getQuestionnaireTaskContentConfigApi = () => {
|
|
export const getQuestionnaireTaskContentConfigApi = () => {
|