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
3e5a172b
Commit
3e5a172b
authored
Jan 15, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
40657a89
144f0522
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
23 deletions
+20
-23
device-manager-ui/admin/.env.development
device-manager-ui/admin/.env.development
+2
-2
device-manager-ui/admin/.env.production
device-manager-ui/admin/.env.production
+2
-5
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
+4
-4
device-manager-ui/admin/src/assets/utils/ajax.js
device-manager-ui/admin/src/assets/utils/ajax.js
+5
-5
device-manager-ui/admin/src/views/login/authentication.vue
device-manager-ui/admin/src/views/login/authentication.vue
+5
-5
No files found.
device-manager-ui/admin/.env.development
View file @
3e5a172b
#开发环境
#开发环境
NODE_ENV = "development"
NODE_ENV = "development"
#
VUE_APP_BASE_API= http://192.168.0.98:11091/m
VUE_APP_BASE_API= http://192.168.0.98:11091/m
VUE_APP_BASE_API= /basics_api/m
#
VUE_APP_BASE_API= /basics_api/m
device-manager-ui/admin/.env.production
View file @
3e5a172b
# 生产环境配置
# 生产环境配置
NODE_ENV = production
NODE_ENV = production
# 地址
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.
251
:18222/m
# 门户登录地址
# 门户登录地址
VUE_APP_PORTAL_URL =/portal_home
VUE_APP_PORTAL_URL =/portal_home
# 站点请求地址
# 站点请求地址
VUE_APP_SITETREE_URL = /basics_api/base/site/siteTree
VUE_APP_SITETREE_URL = http://192.168.0.251:11078/base/site/siteTree
\ No newline at end of file
\ No newline at end of file
device-manager-ui/admin/.env.test
View file @
3e5a172b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
NODE_ENV
=
'test'
NODE_ENV
=
'test'
# 地址
# 地址
VUE_APP_BASE_API
=
/
basics_api
/
m
VUE_APP_BASE_API
=
http
://
192.168
.
0.98
:
11091
/
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
=
/
basics_api
/
base
/
site
/
siteTree
VUE_APP_SITETREE_URL
=
http
://
192.168
.
0.98
:
11078
/
base
/
site
/
siteTree
\ No newline at end of file
\ No newline at end of file
device-manager-ui/admin/.env.yibin
View file @
3e5a172b
...
@@ -2,14 +2,14 @@
...
@@ -2,14 +2,14 @@
NODE_ENV = production
NODE_ENV = production
# 地址
# 地址
VUE_APP_BASE_API =
/basics_api
/m
VUE_APP_BASE_API =
http://192.168.2.144:11091
/m
# websocket地址
# websocket地址
VUE_APP_WEBSOCKET_API =192.168.
0.98
:18222/m
VUE_APP_WEBSOCKET_API =192.168.
2.144
:18222/m
# 门户登录地址
# 门户登录地址
VUE_APP_PORTAL_URL =/portal_home
VUE_APP_PORTAL_URL =
/portal_home
# 站点请求地址
# 站点请求地址
VUE_APP_SITETREE_URL = /basics_api/base/site/siteTree
VUE_APP_SITETREE_URL = http://192.168.2.144:11078/base/site/siteTree
\ No newline at end of file
\ No newline at end of file
device-manager-ui/admin/src/assets/utils/ajax.js
View file @
3e5a172b
import
axios
from
"
axios
"
;
import
axios
from
"
axios
"
;
//
import Qs from "qs";
import
Qs
from
"
qs
"
;
const
JSONbig
=
require
(
"
json-bigint
"
)({
storeAsString
:
true
});
const
JSONbig
=
require
(
"
json-bigint
"
)({
storeAsString
:
true
});
//
import cookie from "./cookie";
import
cookie
from
"
./cookie
"
;
import
httpErrorHandler
from
"
./httpErrorHandler
"
;
import
httpErrorHandler
from
"
./httpErrorHandler
"
;
const
instance
=
axios
.
create
({
const
instance
=
axios
.
create
({
baseURL
:
process
.
env
.
VUE_APP_BASE_API
,
baseURL
:
"
/m
"
,
headers
:
{
headers
:
{
post
:
{
post
:
{
"
Content-Type
"
:
"
application/json;charset=UTF-8
"
,
"
Content-Type
"
:
"
application/json;charset=UTF-8
"
,
...
@@ -34,8 +35,7 @@ instance.interceptors.request.use(
...
@@ -34,8 +35,7 @@ instance.interceptors.request.use(
// console.log("sessionStorage",window.sessionStorage)
// console.log("sessionStorage",window.sessionStorage)
config
.
headers
.
Authorization
=
window
.
sessionStorage
.
getItem
(
"
token
"
)
||
""
;
config
.
headers
.
Authorization
=
window
.
sessionStorage
.
getItem
(
"
token
"
)
||
""
;
//console.log("request config and session",config,window.sessionStorage);
//console.log("request config and session",config,window.sessionStorage);
// config.baseURL = "";
console
.
log
(
config
);
console
.
log
(
"
>>>
"
,
config
);
return
config
;
return
config
;
},
},
(
err
)
=>
{
(
err
)
=>
{
...
...
device-manager-ui/admin/src/views/login/authentication.vue
View file @
3e5a172b
...
@@ -22,11 +22,11 @@ export default {
...
@@ -22,11 +22,11 @@ export default {
},
},
loginFail
(
error
)
{
loginFail
(
error
)
{
this
.
$message
.
error
(
error
.
message
||
"
请登录
"
);
this
.
$message
.
error
(
error
.
message
||
"
请登录
"
);
console
.
log
(
"
<<
"
,
process
.
env
.
VUE_APP_BASE_API
);
//
console.log("
<<
"
, process.env.VUE_APP_BASE_API);
//
window.location.href =
window.location.href =
//
process.env.VUE_APP_PORTAL_URL == "undefined"
process.env.VUE_APP_PORTAL_URL ==
"
undefined
"
//
? "http://192.168.0.98:11072"
?
"
http
:
//192.168.0.98:11072"
//
: process.env.VUE_APP_PORTAL_URL;
:
process
.
env
.
VUE_APP_PORTAL_URL
;
},
},
},
},
computed
:
{
computed
:
{
...
...
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