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
b99c19a7
Commit
b99c19a7
authored
Jan 14, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改环境变量
parent
f678957f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
device-manager-ui/admin/.env.development
device-manager-ui/admin/.env.development
+2
-1
device-manager-ui/admin/src/assets/utils/ajax.js
device-manager-ui/admin/src/assets/utils/ajax.js
+0
-1
device-manager-ui/admin/src/views/login/authentication.vue
device-manager-ui/admin/src/views/login/authentication.vue
+1
-1
No files found.
device-manager-ui/admin/.env.development
View file @
b99c19a7
#开发环境
#开发环境
NODE_ENV = "development"
NODE_ENV = "development"
VUE_APP_API_BASE_URL= 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
device-manager-ui/admin/src/assets/utils/ajax.js
View file @
b99c19a7
...
@@ -3,7 +3,6 @@ import axios from "axios";
...
@@ -3,7 +3,6 @@ import axios from "axios";
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
:
process
.
env
.
VUE_APP_BASE_API
,
headers
:
{
headers
:
{
...
...
device-manager-ui/admin/src/views/login/authentication.vue
View file @
b99c19a7
...
@@ -22,7 +22,7 @@ export default {
...
@@ -22,7 +22,7 @@ export default {
},
},
loginFail
(
error
)
{
loginFail
(
error
)
{
this
.
$message
.
error
(
error
.
message
||
"
请登录
"
);
this
.
$message
.
error
(
error
.
message
||
"
请登录
"
);
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"
...
...
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