Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
national_museum_vod-H5
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fubaole
national_museum_vod-H5
Commits
05b64067
Commit
05b64067
authored
Apr 08, 2021
by
乐宝呗666
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改登录问题
parent
66c59be7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
login.vue
src/views/login.vue
+4
-2
vue.config.js
vue.config.js
+2
-2
No files found.
src/views/login.vue
View file @
05b64067
...
...
@@ -61,10 +61,12 @@ export default {
localStorage
.
setItem
(
"userInfo"
,
JSON
.
stringify
(
data
.
user
));
if
(
isOpt
==
"4"
)
{
this
.
$router
.
push
(
"/opt"
);
}
if
(
isOpt
==
"2"
)
{
}
else
if
(
isOpt
==
"2"
)
{
this
.
$router
.
push
(
"/commit"
);
}
else
{
this
.
$toast
.
fail
(
"您登录的账号既不是运维账号也不是单位用户账号,不能使用H5的功能"
);
}
}
else
{
this
.
$toast
.
fail
(
res
.
data
.
message
);
}
...
...
vue.config.js
View file @
05b64067
...
...
@@ -22,8 +22,8 @@ module.exports = {
hotOnly
:
false
,
// See https://github.com/vuejs/vue-cli/blob/dev/docs/cli-service.md#configuring-proxy
proxy
:
{
'/mall'
:
{
//
target: "http://192.168.110.67/mall",
target
:
"http://192.168.204.66:8088/mall"
,
// 子鹏
target
:
"http://192.168.110.67/mall"
,
//
target: "http://192.168.204.66:8088/mall", // 子鹏
changeOrigin
:
true
,
pathRewrite
:
{
'^/mall'
:
'/'
// 重写接口
...
...
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