Skip to content

Commit c8ef5f1

Browse files
committed
fetchService hasJson fix
1 parent 53093d6 commit c8ef5f1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/data/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ export default new Vuex.Store({
8787
let resData: any;
8888
const contentType = response.headers.get("content-type");
8989
const hasJson = contentType?.indexOf("application/json");
90-
if (hasJson && hasJson !== -1) {
91-
console.log(contentType?.indexOf("application/json"));
9290

91+
if (hasJson! > -1) {
9392
resData = await response?.json();
93+
9494
if (resData?.message) {
9595
commit("ADD_TOAST", {
9696
message: resData.message,

0 commit comments

Comments
 (0)