[refactor] header in one
This commit is contained in:
@@ -7,7 +7,7 @@ import { cloneDeep } from 'lodash';
|
||||
|
||||
export const DataBase = writable({} as any as Database)
|
||||
export const loadedStore = writable(false)
|
||||
export let appVer = '1.10.0'
|
||||
export let appVer = '1.10.1'
|
||||
|
||||
|
||||
export function setDatabase(data:Database){
|
||||
|
||||
@@ -369,7 +369,9 @@ export async function globalFetch(url:string, arg:{body?:any,headers?:{[key:stri
|
||||
|
||||
const da = await fetch(furl, {
|
||||
body: JSON.stringify(arg.body),
|
||||
headers: arg.headers,
|
||||
headers: {
|
||||
"risu-header": encodeURIComponent(JSON.stringify(arg.headers))
|
||||
},
|
||||
method: method
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user