File tree 6 files changed +8
-4
lines changed
6 files changed +8
-4
lines changed Original file line number Diff line number Diff line change
1
+ VUE_APP_ROOT_API = http://localhost:8000
2
+ VUE_APP_ROOT_MEDIA = http://localhost:8000
Original file line number Diff line number Diff line change
1
+ VUE_APP_ROOT_API = http://localhost:8000
2
+ VUE_APP_ROOT_MEDIA = http://localhost:8000
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import axios from 'axios'
7
7
import '@/index.css'
8
8
9
9
10
- axios . defaults . baseURL = 'http://localhost:8000'
10
+ axios . defaults . baseURL = process . env . VUE_APP_ROOT_API
11
11
12
12
13
13
createApp ( App )
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import axios from 'axios'
7
7
import '@/index.css'
8
8
9
9
10
- axios . defaults . baseURL = 'http://localhost:8000'
10
+ axios . defaults . baseURL = process . env . VUE_APP_ROOT_API
11
11
12
12
13
13
createApp ( App )
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export default({
55
55
document .title = ' Resource: ' + this .resource .res_name
56
56
57
57
this .resource .res_files .forEach (file => {
58
- file .url = axios . defaults . baseURL + file .file
58
+ file .url = process . env . VUE_APP_ROOT_MEDIA + file .file
59
59
});
60
60
},
61
61
},
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import axios from 'axios'
7
7
import '@/index.css'
8
8
9
9
10
- axios . defaults . baseURL = 'http://localhost:8000'
10
+ axios . defaults . baseURL = process . env . VUE_APP_ROOT_API
11
11
12
12
13
13
createApp ( App )
You can’t perform that action at this time.
0 commit comments