Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bill-manager-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
bill-manager-ui
Commits
5c34fff2
Commit
5c34fff2
authored
Jun 20, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改路由
parent
81ab790d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
26 deletions
+5
-26
admin/.env.development
admin/.env.development
+2
-2
admin/src/assets/utils/ajax.js
admin/src/assets/utils/ajax.js
+1
-9
admin/src/components/FileUpload.vue
admin/src/components/FileUpload.vue
+1
-1
admin/vue.config.js
admin/vue.config.js
+1
-14
No files found.
admin/.env.development
View file @
5c34fff2
#开发环境
NODE_ENV = "development"
VUE_APP_BASE_API= http://192.168.0.98:11091/
m
VUE_APP_BASE_API= http://192.168.0.98:11091/
bill
#VUE_APP_BASE_API= /basics_api/m
#图片地址拼接
VUE_APP_API_IMG_URL=http://192.168.0.98:11078/
\ No newline at end of file
VUE_APP_API_IMG_URL=http://192.168.0.98:11078/
admin/src/assets/utils/ajax.js
View file @
5c34fff2
...
...
@@ -5,7 +5,7 @@ import cookie from "./cookie";
import
httpErrorHandler
from
"
./httpErrorHandler
"
;
const
instance
=
axios
.
create
({
baseURL
:
"
/
m
"
,
baseURL
:
"
/
bill
"
,
//baseURL: process.env.VUE_APP_BASE_API,
headers
:
{
post
:
{
...
...
@@ -27,15 +27,7 @@ const instance = axios.create({
instance
.
interceptors
.
request
.
use
(
(
config
)
=>
{
//config.data = Qs.stringify(config.data, {arrayFormat: 'repeat', allowDots: true});
//config.data = Qs.stringify(config.data, {arrayFormat: 'indices', allowDots: true});
//brackets
// 也可以在这里给请求添加token之类的字段
// config.headers['Content-Type'] = 'application/json;charset=UTF-8'
// config.headers.timestamp = Math.floor(new Date().getTime() / 1000)
// console.log("sessionStorage",window.sessionStorage)
config
.
headers
.
Authorization
=
window
.
sessionStorage
.
getItem
(
"
token
"
)
||
""
;
//console.log("request config and session",config,window.sessionStorage);
return
config
;
},
(
err
)
=>
{
...
...
admin/src/components/FileUpload.vue
View file @
5c34fff2
...
...
@@ -102,7 +102,7 @@ export default {
},
data
()
{
return
{
uploadFileUrl
:
"
/
m
/file/commonupload
"
,
// 上传的地址
uploadFileUrl
:
"
/
bill
/file/commonupload
"
,
// 上传的地址
headers
:{},
fileList
:
[],
};
...
...
admin/vue.config.js
View file @
5c34fff2
...
...
@@ -8,24 +8,11 @@ module.exports = {
port
:
8085
,
hot
:
true
,
//自动保存
proxy
:
{
"
/
m
"
:
{
"
/
bill
"
:
{
target
:
"
http://192.168.0.98:11078
"
,
//target: 'http://127.0.0.1:18222',
changeOrigin
:
true
,
secure
:
false
},
"
/file
"
:
{
target
:
"
http://192.168.0.98:11091
"
,
//target: 'http://127.0.0.1:18222',
changeOrigin
:
true
,
},
"
/moudle
"
:
{
target
:
"
http://192.168.0.98:11091
"
,
changeOrigin
:
true
,
logLevel
:
'
debug
'
,
pathRewrite
:{
'
^
'
:
''
}
}
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment