11.29前端
This commit is contained in:
parent
36dce77987
commit
9503b84e5b
@ -23,6 +23,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
@ -84,9 +85,7 @@
|
||||
success: (rex) => {
|
||||
console.log('请求成功', rex)
|
||||
if (rex.data.code == 200) {
|
||||
if (this.loginStatus) {
|
||||
clearInterval(this.loginStatus)
|
||||
}
|
||||
|
||||
uni.setStorageSync('App-Token', rex.data.token);
|
||||
if (this.returnUrl) {
|
||||
uni.navigateBack()
|
||||
@ -102,7 +101,7 @@
|
||||
title: rex.data.msg
|
||||
})
|
||||
console.log('走错误请求');
|
||||
|
||||
|
||||
}
|
||||
},
|
||||
fail: (res) => {
|
||||
|
Loading…
Reference in New Issue
Block a user