Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-new-platform
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
赵啸非
device-new-platform
Commits
f5647194
Commit
f5647194
authored
Jan 15, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改站点请求地址
parent
3e5a172b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
device-manager-ui/admin/.env.production
device-manager-ui/admin/.env.production
+3
-1
device-manager-ui/admin/.env.test
device-manager-ui/admin/.env.test
+2
-2
device-manager-ui/admin/.env.yibin
device-manager-ui/admin/.env.yibin
+2
-2
device-manager-ui/admin/src/assets/utils/ajax.js
device-manager-ui/admin/src/assets/utils/ajax.js
+2
-1
No files found.
device-manager-ui/admin/.env.production
View file @
f5647194
# 生产环境配置
# 生产环境配置
NODE_ENV = production
NODE_ENV = production
VUE_APP_BASE_API = /basics_api/m
# websocket地址
# websocket地址
VUE_APP_WEBSOCKET_API =192.168.0.251:18222/m
VUE_APP_WEBSOCKET_API =192.168.0.251:18222/m
...
@@ -9,4 +11,4 @@ VUE_APP_PORTAL_URL =/portal_home
...
@@ -9,4 +11,4 @@ VUE_APP_PORTAL_URL =/portal_home
# 站点请求地址
# 站点请求地址
VUE_APP_SITETREE_URL = http://192.168.0.251:11078/base/site/siteTree
VUE_APP_SITETREE_URL = /basics_api/base/site/siteTree
\ No newline at end of file
device-manager-ui/admin/.env.test
View file @
f5647194
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
NODE_ENV
=
'test'
NODE_ENV
=
'test'
# 地址
# 地址
VUE_APP_BASE_API
=
http
://
192.168
.
0.98
:
11091
/
m
VUE_APP_BASE_API
=
/
basics_api
/
m
# websocket地址
# websocket地址
VUE_APP_WEBSOCKET_API
=
192.168
.
0.98
:
18222
/
m
VUE_APP_WEBSOCKET_API
=
192.168
.
0.98
:
18222
/
m
...
@@ -12,4 +12,4 @@ VUE_APP_PORTAL_URL =/portal_home
...
@@ -12,4 +12,4 @@ VUE_APP_PORTAL_URL =/portal_home
# 站点请求地址
# 站点请求地址
VUE_APP_SITETREE_URL
=
http
://
192.168
.
0.98
:
11078
/
base
/
site
/
siteTree
VUE_APP_SITETREE_URL
=
/
basics_api
/
base
/
site
/
siteTree
\ No newline at end of file
device-manager-ui/admin/.env.yibin
View file @
f5647194
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
NODE_ENV = production
NODE_ENV = production
# 地址
# 地址
VUE_APP_BASE_API =
http://192.168.2.144:11091
/m
VUE_APP_BASE_API =
/basics_api
/m
# websocket地址
# websocket地址
VUE_APP_WEBSOCKET_API =192.168.2.144:18222/m
VUE_APP_WEBSOCKET_API =192.168.2.144:18222/m
...
@@ -12,4 +12,4 @@ VUE_APP_PORTAL_URL = /portal_home
...
@@ -12,4 +12,4 @@ VUE_APP_PORTAL_URL = /portal_home
# 站点请求地址
# 站点请求地址
VUE_APP_SITETREE_URL = http://192.168.2.144:11078/base/site/siteTree
VUE_APP_SITETREE_URL = /basics_api/base/site/siteTree
\ No newline at end of file
device-manager-ui/admin/src/assets/utils/ajax.js
View file @
f5647194
...
@@ -5,7 +5,8 @@ import cookie from "./cookie";
...
@@ -5,7 +5,8 @@ import cookie from "./cookie";
import
httpErrorHandler
from
"
./httpErrorHandler
"
;
import
httpErrorHandler
from
"
./httpErrorHandler
"
;
const
instance
=
axios
.
create
({
const
instance
=
axios
.
create
({
baseURL
:
"
/m
"
,
// baseURL: "/m",
baseURL
:
process
.
env
.
VUE_APP_BASE_API
,
headers
:
{
headers
:
{
post
:
{
post
:
{
"
Content-Type
"
:
"
application/json;charset=UTF-8
"
,
"
Content-Type
"
:
"
application/json;charset=UTF-8
"
,
...
...
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