Commit 02585ce1 authored by 谢子梦's avatar 谢子梦

stage:本地登录

parent 392077e6
...@@ -5,9 +5,10 @@ VUE_APP_TITLE = '薪瑞通' ...@@ -5,9 +5,10 @@ VUE_APP_TITLE = '薪瑞通'
ENV = 'development' ENV = 'development'
# 薪瑞通/开发环境 # 薪瑞通/开发环境
VUE_APP_BASE_API = 'http://localhost:8080' # VUE_APP_BASE_API = 'http://192.168.31.96:8080'
VUE_APP_BASE_API = 'http://admin.xinruit.com/stage-api'
# 请求、响应数据加密 # 请求、响应数据加密
VUE_APP_AES_ENCRYPT_ENABLED = 'false' VUE_APP_AES_ENCRYPT_ENABLED = 'true'
# 请求数据加密秘钥串 # 请求数据加密秘钥串
VUE_APP_AES_ENCRYPT_KEY = 'b8123298c638fb4c' VUE_APP_AES_ENCRYPT_KEY = 'b8123298c638fb4c'
......
...@@ -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: '/loginBySmsCode', url: '/login',
headers: { headers: {
isToken: false isToken: false
}, },
......
...@@ -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="getSmsCode"> @click.native.prevent="handleLogin">
<span v-if="!loading">登 录</span> <span v-if="!loading">登 录</span>
<span v-else>登 录 中...</span> <span v-else>登 录 中...</span>
</el-button> </el-button>
......
...@@ -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://192.168.31.195:8080`, // target: `http://admin.xinruit.com`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '' ['^' + process.env.VUE_APP_BASE_API]: ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment