Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
薪
薪瑞通-前端
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
许珑标
薪瑞通-前端
Commits
e27e0243
Commit
e27e0243
authored
Apr 16, 2025
by
谢子梦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "stage:本地登录"
This reverts commit
02585ce1
.
parent
02585ce1
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
8 deletions
+7
-8
.env.development
.env.development
+2
-3
src/api/login.js
src/api/login.js
+1
-1
src/views/login.vue
src/views/login.vue
+2
-2
vue.config.js
vue.config.js
+2
-2
No files found.
.env.development
View file @
e27e0243
...
@@ -5,10 +5,9 @@ VUE_APP_TITLE = '薪瑞通'
...
@@ -5,10 +5,9 @@ VUE_APP_TITLE = '薪瑞通'
ENV = 'development'
ENV = 'development'
# 薪瑞通/开发环境
# 薪瑞通/开发环境
# VUE_APP_BASE_API = 'http://192.168.31.96:8080'
VUE_APP_BASE_API = 'http://localhost:8080'
VUE_APP_BASE_API = 'http://admin.xinruit.com/stage-api'
# 请求、响应数据加密
# 请求、响应数据加密
VUE_APP_AES_ENCRYPT_ENABLED = '
tru
e'
VUE_APP_AES_ENCRYPT_ENABLED = '
fals
e'
# 请求数据加密秘钥串
# 请求数据加密秘钥串
VUE_APP_AES_ENCRYPT_KEY = 'b8123298c638fb4c'
VUE_APP_AES_ENCRYPT_KEY = 'b8123298c638fb4c'
...
...
src/api/login.js
View file @
e27e0243
...
@@ -10,7 +10,7 @@ export function login(username, password, code, smsCode, uuid) {
...
@@ -10,7 +10,7 @@ export function login(username, password, code, smsCode, uuid) {
uuid
uuid
}
}
return
request
({
return
request
({
url
:
'
/login
'
,
url
:
'
/login
BySmsCode
'
,
headers
:
{
headers
:
{
isToken
:
false
isToken
:
false
},
},
...
...
src/views/login.vue
View file @
e27e0243
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
<el-checkbox
v-model=
"loginForm.rememberMe"
style=
"margin:12px 0px 25px 0px;"
>
记住密码
</el-checkbox>
<el-checkbox
v-model=
"loginForm.rememberMe"
style=
"margin:12px 0px 25px 0px;"
>
记住密码
</el-checkbox>
<el-form-item
style=
"width:100%;"
>
<el-form-item
style=
"width:100%;"
>
<el-button
:loading=
"loading"
size=
"medium"
type=
"primary"
style=
"width:100%;"
<el-button
:loading=
"loading"
size=
"medium"
type=
"primary"
style=
"width:100%;"
@
click.native.prevent=
"
handleLogin
"
>
@
click.native.prevent=
"
getSmsCode
"
>
<span
v-if=
"!loading"
>
登 录
</span>
<span
v-if=
"!loading"
>
登 录
</span>
<span
v-else
>
登 录 中...
</span>
<span
v-else
>
登 录 中...
</span>
</el-button>
</el-button>
...
...
vue.config.js
View file @
e27e0243
...
@@ -35,8 +35,8 @@ module.exports = {
...
@@ -35,8 +35,8 @@ module.exports = {
proxy
:
{
proxy
:
{
// detail: https://cli.vuejs.org/config/#devserver-proxy
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
[
process
.
env
.
VUE_APP_BASE_API
]:
{
target
:
`http://localhost:8080`
,
//
target: `http://localhost:8080`,
// target: `http://admin.xinruit.com
`,
target
:
`http://192.168.31.195:8080
`
,
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
[
'
^
'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
[
'
^
'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
...
...
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