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

fix: 70487

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