- fix Indexdb:
1) ReadAllData 'GET' : OK 2) InsertTodo 'POST' : OK 3) DeleteItem 'DELETE': OK 4) Modify 'PATCH' : OK
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import axios, { AxiosInstance, AxiosPromise, AxiosResponse, AxiosInterceptorManager } from 'axios'
|
||||
|
||||
async function sendRequest (url: string, lang: string, mytok: string, method: string, mydata: any) {
|
||||
async function sendRequest(url: string, lang: string, mytok: string, method: string, mydata: any) {
|
||||
|
||||
console.log('sendRequest', method, url, '[', lang, ']')
|
||||
|
||||
@@ -18,6 +18,12 @@ async function sendRequest (url: string, lang: string, mytok: string, method: st
|
||||
cache: 'no-cache',
|
||||
headers: authHeader
|
||||
}
|
||||
} else if (method === 'DELETE') {
|
||||
configInit = {
|
||||
method: method,
|
||||
cache: 'no-cache',
|
||||
headers: authHeader
|
||||
}
|
||||
} else {
|
||||
configInit = {
|
||||
method: method,
|
||||
|
||||
Reference in New Issue
Block a user