一键申请:融合服务特殊处理

This commit is contained in:
guoyue 2022-09-19 19:23:41 +08:00
parent 47871e8a02
commit 1455e2e0d7
1 changed files with 8 additions and 1 deletions

View File

@ -224,6 +224,11 @@
HomeHeader, HomeHeader,
AbilityToApplyFor, AbilityToApplyFor,
}, },
beforeRouteLeave(from, to, next) {
console.log('from, to, next------------>', from, to, next);
localStorage.removeItem('integrationServicesItemInfo')
next()
},
setup() { setup() {
const router = useRouter() const router = useRouter()
const disabled = ref(false) const disabled = ref(false)
@ -238,7 +243,6 @@
'integrationServicesItemInfo------------>', 'integrationServicesItemInfo------------>',
integrationServicesItemInfo integrationServicesItemInfo
) )
const applyAll = router.currentRoute.value.query.applyAll const applyAll = router.currentRoute.value.query.applyAll
const num = ref(0) const num = ref(0)
if (!applyAll) { if (!applyAll) {
@ -372,6 +376,7 @@
//退 //退
const resetFields = () => { const resetFields = () => {
window.history.go(-1) window.history.go(-1)
localStorage.removeItem('integrationServicesItemInfo')
} }
// //
@ -805,9 +810,11 @@
updateIntegrationServices(_data) updateIntegrationServices(_data)
.then((res) => { .then((res) => {
console.log('res---更新--------->', res) console.log('res---更新--------->', res)
localStorage.removeItem('integrationServicesItemInfo')
}) })
.catch((err) => { .catch((err) => {
console.log('err----更新-------->', err) console.log('err----更新-------->', err)
localStorage.removeItem('integrationServicesItemInfo')
}) })
} }
return { return {