Commit c0e68ade authored by Damon's avatar Damon

fix: 订单详情页token校验

parent 278c1b85
......@@ -207,7 +207,7 @@ export default {
},
visible: false,
// orderId: null,
orderId: 11880366, // 测试数据
orderId: 11881507, // 测试数据
order: {},
needPhotograph: true, // 需要现场拍摄
orderRecords: [],
......@@ -464,6 +464,16 @@ export default {
if (option && option.id) {
this.orderId = option.id
}
if(!this.vuex_token) {
this.$refs.uToast.show({
title: '登录过期,请先登录',
type: 'warning',
})
setTimeout(() => {
this.$u.route({url: 'pages/login/index'})
}, 1500)
}
if (this.uploadTask.length > 0) {
upload.uploadImageTask(this)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment