Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1c1f893

Browse files
committed
Adding axios.configs and version update
1 parentb070e0d commit1c1f893

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name":"laravel-frontend-file-manager",
3-
"version":"3.0.7",
3+
"version":"3.0.8",
44
"description":"File manager for Laravel",
55
"keywords": [
66
"laravel",

‎src/FileManager.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ export default {
132132
133133
if(settings) {
134134
if(settings.baseURL)HTTP.defaults.baseURL=settings.baseURL;
135+
if(settings.withCredentials)HTTP.defaults.withCredentials=settings.withCredentials;
135136
if(settings.headers)HTTP.defaults.headers=settings.headers;
136137
}
137138
},

‎src/http/axios.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import axios from 'axios';
22
importlocalstorefrom'../mixins/localstore';
33

44
letsettings=localstore.getStorage(localstore.axiosSettingType);
5-
letobj={};
65

76
if(settings){
8-
if(settings.baseURL)obj.baseURL=settings.baseURL;
9-
if(settings.headers)obj.headers=settings.headers;
7+
if(settings.baseURL)axios.defaults.baseURL=settings.baseURL;
8+
if(settings.withCredentials)axios.defaults.withCredentials=settings.withCredentials;
9+
if(settings.headers)axios.defaults.headers=settings.headers;
1010
}
1111

1212
// set new axios instance
13-
exportdefaultaxios.create(obj);
13+
exportdefaultaxios;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp