video_transcode
杨树明 5 years ago
parent 122d7dc248
commit 7a1aabd86b

@ -26,7 +26,6 @@ import { notification } from "antd";
export const startProgramQuestion = (id, props) => { export const startProgramQuestion = (id, props) => {
return (dispatch, getState) => { return (dispatch, getState) => {
const {searchParams} = getState().ojFormReducer; const {searchParams} = getState().ojFormReducer;
console.log(searchParams);
fetchStartProgram(id).then(res => { fetchStartProgram(id).then(res => {
const { status, data } = res; const { status, data } = res;
if (status === 200) { if (status === 200) {
@ -50,7 +49,7 @@ export const startProgramQuestion = (id, props) => {
// console.log(path); // console.log(path);
// props.history.push(`/myproblems/${identifier}`); // props.history.push(`/myproblems/${identifier}`);
props.history.push({ props.history.push({
pathname: `/myproblems/${identifier}${searchParams}`, pathname: `/myproblems/${identifier}/${searchParams}`,
}); });
} }
} }

@ -1,7 +1,7 @@
/* /*
* @Description: 开发者社区接口 * @Description: 开发者社区接口
* @Author: tangjiang * @Author: tangjiang
* @Github: * @Github:
* @Date: 2019-11-20 10:55:38 * @Date: 2019-11-20 10:55:38
* @LastEditors : tangjiang * @LastEditors : tangjiang
* @LastEditTime : 2020-01-07 15:23:19 * @LastEditTime : 2020-01-07 15:23:19
@ -34,7 +34,7 @@ export async function fetchPostOjForm (paramsObj) {
// if (identifier) { // if (identifier) {
// return axios.post(url, params); // return axios.post(url, params);
// } else { // } else {
// return // return
// } // }
return identifier ? axios.put(url, params) : axios.post(url, params); return identifier ? axios.put(url, params) : axios.post(url, params);
} }
@ -136,7 +136,7 @@ export async function fetchUploadImage (file) {
export async function fetchUploadImageUrl (id) { export async function fetchUploadImageUrl (id) {
const url = `/attachments/${id}`; const url = `/attachments/${id}`;
return axios.get(url); return axios.get(url);
} }
// 添加笔记 // 添加笔记
export async function fetchAddNotes (identifier, params) { export async function fetchAddNotes (identifier, params) {

Loading…
Cancel
Save