|
|
@@ -267,15 +267,17 @@ export default {
|
|
|
roBack() {
|
|
|
// const { callback } = this.$route.params
|
|
|
// if (typeof callback === 'function') callback()
|
|
|
- this.$store.dispatch('delVisitedViews', this.$route).then((views) => {
|
|
|
- const latestView = views.slice(-1)[0]
|
|
|
- if (latestView) {
|
|
|
- this.$router.push(latestView.path)
|
|
|
- } else {
|
|
|
- this.$router.push('/')
|
|
|
- }
|
|
|
+ // this.$store.dispatch('delVisitedViews', this.$route).then((views) => {
|
|
|
+ // const latestView = views.slice(-1)[0]
|
|
|
+ // if (latestView) {
|
|
|
+ // this.$router.push(latestView.path)
|
|
|
+ // } else {
|
|
|
+ // this.$router.push('/')
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ this.$store.dispatch('delVisitedViews', this.$route).then((views) => {
|
|
|
+ this.$router.push({ name: 'warehousing' })
|
|
|
})
|
|
|
- // this.$router.push({ name: 'warehousing' })
|
|
|
},
|
|
|
handleRemove(file, fileList) {
|
|
|
console.log(file, fileList);
|