fix:修改学员操作样式

This commit is contained in:
lixg
2022-12-19 17:33:25 +08:00
parent ca49ab9dfc
commit ff2a15ae1f
6 changed files with 443 additions and 406 deletions

View File

@@ -1,5 +1,5 @@
import {reactive, ref, toRefs, watch} from "vue";
import {getCookie} from "@/api/method";
import { reactive, ref, toRefs, watch } from "vue";
import { getCookie } from "@/api/method";
import JSONBigInt from 'json-bigint';
const JSONBigIntStr = JSONBigInt({ storeAsString: true });
@@ -139,16 +139,16 @@ export async function request(_url, params) {
}
const body = method !== 'get' ? params || {} : {}
url = process.env.VUE_APP_BOE_API_URL + url
return fetch(url,{
return fetch(url, {
method,
headers:{
headers: {
token: getCookie('token'),
...method !== 'get' ? {'Content-Type': 'application/json'} : {}
...method !== 'get' ? { 'Content-Type': 'application/json' } : {}
},
...method !== 'get' ? {body: JSON.stringify(body)} : {}
}).then(res=>{
...method !== 'get' ? { body: JSON.stringify(body) } : {}
}).then(res => {
return res.text()
}).then(res=>{
}).then(res => {
return JSONBigIntStr.parse(res)
})
// return axios({