Commit fb4e2f23 by 王志慧

commit

1 parent 3a6f81c1
......@@ -32,6 +32,8 @@
<script>
import { groupCustomer } from '@/api'
import { Notify } from 'vant'
import { util } from '../../utils'
import { mapActions } from 'vuex'
export default {
data() {
return {
......@@ -48,6 +50,15 @@ export default {
this.getcustomerRecordList()
},
methods: {
...mapActions({
navigation: 'navigation'
}),
//重新登录
reLogin() {
/**登录过期 重新登录 */
util.clearSessionId()
this.navigation()
},
getcustomerRecordList() {
let list = this.recordList
groupCustomer.getcustomerRecordList({ ...this.page }).then(({ code, data, message }) => {
......@@ -58,7 +69,9 @@ export default {
if (data.list == 0 && this.flag) {
this.$refs.scrollView.finished = true
}
} else {
} else if(code == 21) {
this.reLogin()
}else{
Notify(message)
}
this.flag = true
......@@ -90,7 +103,7 @@ export default {
position: relative;
.customerName {
max-width: 160px;
}
}
.portrait {
width: 40px;
height: 40px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!