11.29前端

This commit is contained in:
@QQNZX 2023-11-29 14:34:32 +08:00
parent 36dce77987
commit 9503b84e5b

View File

@ -23,6 +23,7 @@
</view> </view>
</view> </view>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
@ -84,9 +85,7 @@
success: (rex) => { success: (rex) => {
console.log('请求成功', rex) console.log('请求成功', rex)
if (rex.data.code == 200) { if (rex.data.code == 200) {
if (this.loginStatus) {
clearInterval(this.loginStatus)
}
uni.setStorageSync('App-Token', rex.data.token); uni.setStorageSync('App-Token', rex.data.token);
if (this.returnUrl) { if (this.returnUrl) {
uni.navigateBack() uni.navigateBack()
@ -102,7 +101,7 @@
title: rex.data.msg title: rex.data.msg
}) })
console.log('走错误请求'); console.log('走错误请求');
} }
}, },
fail: (res) => { fail: (res) => {