Commit ba16de0f authored by jiaxu.yan's avatar jiaxu.yan

fix: 70487

parent 9b4a045a
......@@ -63,7 +63,6 @@ export default {
const result = [] // 存储最终的结果数组
for (let i = 0; i < arr.length; i++) {
const title = arr[i].meta.title
console.log('面包屑', title)
if (!titles.has(title)) {
titles.add(title)
result.push(arr[i])
......
......@@ -228,7 +228,7 @@ export default {
toLastView(visitedViews, view) {
const latestView = visitedViews.slice(-1)[0]
if (latestView) {
this.$router.push(latestView.fullPath)
this.$router.replace(latestView.fullPath)
} else {
// now the default is to redirect to the home page if there is no tags-view,
// you can adjust it according to your needs.
......
......@@ -51,7 +51,6 @@ export default {
})
.then(res => {
if (res.code === 200) {
console.log(res.rows)
this.tableData = res.rows
this.total = res.total
}
......
export default {
beforeRouteEnter(to, from, next) {
next(vm => {
vm.formPath = from.path
console.log(vm.formPath)
})
},
// beforeRouteEnter(to, from, next) {
// next(vm => {
// console.log(vm.formPath)
// vm.formPath.push(from.path)
// console.log(vm.formPath);
// })
// },
data() {
return {
formPath: ''
formPath: []
}
},
methods: {
......@@ -15,13 +16,13 @@ export default {
* 返回上一页
*/
goBack() {
if (this.formPath) {
this.$router.push({
path: this.formPath
})
} else {
// if (this.formPath) {
// this.$router.push({
// path: this.formPath[0]
// })
// } else {
this.$router.back()
}
// }
}
}
}
......@@ -302,7 +302,6 @@ export default {
dicts: ['system_review_test'],
data() {
return {
formPath: '',
sceneManger: {
dialogVisible: false
},
......@@ -426,18 +425,6 @@ export default {
this.handleCircle(0)
},
methods: {
/**
* 返回上一页
*/
goBack() {
if (this.formPath) {
this.$router.push({
path: this.formPath
})
} else {
this.$router.back()
}
},
/**
* 企业文件保存回调
*/
......
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