Skip to content

Commit

Permalink
Merge pull request #17 from zolplay-cn/cali
Browse files Browse the repository at this point in the history
fix(utils): API
  • Loading branch information
CaliCastle authored Oct 24, 2022
2 parents 685a148 + ce0dfce commit 038c67f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
7 changes: 7 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @zolplay/react

## 0.2.5

### Patch Changes

- Updated dependencies
- @zolplay/utils@1.3.4

## 0.2.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zolplay/react",
"version": "0.2.4",
"version": "0.2.5",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "dist/index.mjs",
Expand Down
6 changes: 6 additions & 0 deletions packages/utils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @zolplay/utils

## 1.3.4

### Patch Changes

- Fix(utils/api): axios instance

## 1.3.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zolplay/utils",
"version": "1.3.3",
"version": "1.3.4",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "dist/index.mjs",
Expand Down
4 changes: 2 additions & 2 deletions packages/utils/src/api.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { AxiosRequestConfig } from 'axios'
import { Axios } from 'axios'
import axios from 'axios'

export const API = new Axios({
export const API = axios.create({
baseURL: '/api',
headers: {
'X-Requested-With': 'XMLHttpRequest',
Expand Down

0 comments on commit 038c67f

Please sign in to comment.