|
|
@ -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) {
|
|
|
|