pull/1/head
赵夫琳 8 months ago
parent 3be8e1d377
commit 39469f602a

@ -5,7 +5,10 @@ ENV = 'development'
VUE_APP_TITLE = 链友融财务数字一体化信息系统
# 链友融财务数字一体化信息系统/开发环境
VUE_APP_BASE_API = 'http://60.204.223.58:8080'
# 测试
#VUE_APP_BASE_API = 'http://60.204.223.58:8080'
# 方楠
VUE_APP_BASE_API = 'https://2537287x0n.imdo.co'
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true

@ -5,7 +5,10 @@ ENV = 'development'
VUE_APP_TITLE = 链友融财务数字一体化信息系统
# 链友融财务数字一体化信息系统/开发环境
VUE_APP_BASE_API = 'http://60.204.223.58:8080'
# 测试
#VUE_APP_BASE_API = 'http://60.204.223.58:8080'
# 方楠
VUE_APP_BASE_API = 'https://2537287x0n.imdo.co'
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true

@ -1,4 +1,5 @@
import request from '@/plugin/axios'
import { getRefreshToken } from '@/utils/auth'
// 登录
export function loginIn(data) {
return request({
@ -45,4 +46,13 @@ export function reqCheck(data) {
})
}
// 刷新访问令牌
export function refreshToken() {
return request({
url: '/system/auth/refresh-token?refreshToken=' + getRefreshToken(),
method: 'post'
})
}

@ -73,7 +73,7 @@
color: #05a9ff;
margin-left: 0.5rem;
display: flex;
align-items: end;
align-items: flex-end;
font-size: 0.8rem;
::v-deep .van-icon {

@ -10,7 +10,7 @@
</template>
<script>
import { getSafing } from '@/api/login'
// import { getSafing } from '@/api/login'
import dayjs from 'dayjs'
import { mapGetters } from 'vuex'
@ -39,14 +39,14 @@ export default {
},
methods: {
handleInit() {
getSafing().then(res => {
this.form = res.data || {}
}).catch(err => {
if (err.status === 201) {
let redirectUrl = this.$router.currentRoute.query.redirect
if (redirectUrl) this.$router.replace('/' + decodeURIComponent(redirectUrl))
}
})
// getSafing().then(res => {
// this.form = res.data || {}
// }).catch(err => {
// if (err.status === 201) {
// let redirectUrl = this.$router.currentRoute.query.redirect
// if (redirectUrl) this.$router.replace('/' + decodeURIComponent(redirectUrl))
// }
// })
}
}
}

Loading…
Cancel
Save