Commit fb4e2f23 by 王志慧

commit

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