Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
Project
Project
Details
Activity
Releases
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
黄媛媛
ElectricitySheep
Commits
0f8e8bc0
Commit
0f8e8bc0
authored
4 years ago
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
8bec3030
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Login.vue
src/components/Login.vue
+1
-1
index.js
src/plug/index.js
+4
-4
No files found.
src/components/Login.vue
View file @
0f8e8bc0
...
...
@@ -251,7 +251,7 @@
if
(
this
.
msg
.
ValidataCode
==
""
)
{
this
.
Info
(
"请输入验证码!"
)
}
this
.
apipost
(
"
api/user/l
ogin"
,
this
.
msg
,
res
=>
{
this
.
apipost
(
"
/api/Tenant/L
ogin"
,
this
.
msg
,
res
=>
{
console
.
log
(
"res"
,
res
);
})
}
...
...
This diff is collapsed.
Click to expand it.
src/plug/index.js
View file @
0f8e8bc0
...
...
@@ -54,7 +54,7 @@ export default {
//域名管理对象
Vue
.
prototype
.
domainManager
=
function
()
{
let
domainUrl
=
''
;
domainUrl
=
"http
://127.0.0.
1"
;
domainUrl
=
"http
s://localhost:500
1"
;
let
locationName
=
window
.
location
.
hostname
;
if
(
locationName
.
indexOf
(
'testerp.oytour'
)
!==
-
1
)
{
domainUrl
=
"http://testapi.oytour.com"
;
...
...
@@ -117,7 +117,7 @@ export default {
if
(
msg
==
null
||
msg
==
""
)
{
msg
=
{}
}
var
apiurl
=
this
.
domainManager
().
PostUrl
;
var
apiurl
=
this
.
domainManager
().
DomainUrl
+
cmd
;
var
timestamp
=
(
new
Date
()).
valueOf
();
this
.
apiurl
=
apiurl
;
if
(
!
localStorage
.
userInfo
&&
localStorage
.
userInfo
!=
""
&&
this
.
$route
.
path
.
toLowerCase
()
!=
"/login"
)
{
...
...
@@ -143,11 +143,11 @@ export default {
}
var
postData
=
{
"msg"
:
msg
,
"cmd"
:
cmd
,
"timestamp"
:
timestamp
,
"token"
:
token
,
"sign"
:
md5Str
,
"languageId"
:
tempLanguage
"languageId"
:
tempLanguage
,
"cmd"
:
cmd
,
}
this
.
$http
.
post
(
apiurl
,
postData
,
{
headers
:
{
...
...
This diff is collapsed.
Click to expand it.
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