mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-10 20:39:48 +08:00
fix: Dashboard route path. (#483)
This commit is contained in:
parent
85468ffa0c
commit
74364f6c45
@ -3,7 +3,7 @@
|
||||
<!-- Use 2.5 slot syntax. If you use Vue 2.6, please use new slot syntax-->
|
||||
<template
|
||||
slot="dateCell"
|
||||
slot-scope="{date, data}"
|
||||
slot-scope="{ date, data }"
|
||||
>
|
||||
<p :class="data.isSelected ? 'is-selected' : ''">
|
||||
{{ data.day.split('-').slice(2).join('-') }} {{ data.isSelected ? '✔️' : '' }}
|
||||
|
@ -59,7 +59,11 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
this.getPendingDocuments()
|
||||
this.subscribeChanges()
|
||||
|
||||
this.unsubscribe = this.subscribeChanges()
|
||||
},
|
||||
beforeDestroy() {
|
||||
this.unsubscribe()
|
||||
},
|
||||
methods: {
|
||||
showMessage,
|
||||
@ -130,7 +134,7 @@ export default {
|
||||
|
||||
<style scoped>
|
||||
.search_recent {
|
||||
width: 50%!important;
|
||||
width: 50% !important;
|
||||
float: right;
|
||||
}
|
||||
.header {
|
||||
|
@ -73,7 +73,11 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
this.getRecentItems({ pageToken: undefined, pageSize: undefined })
|
||||
this.subscribeChanges()
|
||||
|
||||
this.unsubscribe = this.subscribeChanges()
|
||||
},
|
||||
beforeDestroy() {
|
||||
this.unsubscribe()
|
||||
},
|
||||
methods: {
|
||||
showMessage,
|
||||
@ -120,11 +124,16 @@ export default {
|
||||
if (!this.isEmptyValue(row.uuidRecord)) {
|
||||
recordUuid = row.uuidRecord
|
||||
}
|
||||
let tabParent
|
||||
if (row.action === 'window') {
|
||||
tabParent = 0
|
||||
}
|
||||
|
||||
this.$router.push({
|
||||
name: viewSearch.name,
|
||||
query: {
|
||||
action: recordUuid,
|
||||
tabParent: 0
|
||||
tabParent
|
||||
}
|
||||
})
|
||||
} else {
|
||||
@ -157,7 +166,7 @@ export default {
|
||||
|
||||
<style scoped>
|
||||
.search_recent {
|
||||
width: 50%!important;
|
||||
width: 50% !important;
|
||||
float: right;
|
||||
}
|
||||
.header {
|
||||
|
@ -75,7 +75,11 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
this.getFavoritesList()
|
||||
this.subscribeChanges()
|
||||
|
||||
this.unsubscribe = this.subscribeChanges()
|
||||
},
|
||||
beforeDestroy() {
|
||||
this.unsubscribe()
|
||||
},
|
||||
methods: {
|
||||
showMessage,
|
||||
@ -124,11 +128,16 @@ export default {
|
||||
if (!this.isEmptyValue(row.uuidRecord)) {
|
||||
recordUuid = row.uuidRecord
|
||||
}
|
||||
let tabParent
|
||||
if (row.action === 'window') {
|
||||
tabParent = 0
|
||||
}
|
||||
|
||||
this.$router.push({
|
||||
name: viewSearch.name,
|
||||
query: {
|
||||
action: recordUuid,
|
||||
tabParent: 0
|
||||
tabParent
|
||||
}
|
||||
})
|
||||
} else {
|
||||
@ -178,7 +187,7 @@ export default {
|
||||
|
||||
<style scoped>
|
||||
.search_recent {
|
||||
width: 50%!important;
|
||||
width: 50% !important;
|
||||
float: right;
|
||||
}
|
||||
.header {
|
||||
|
Loading…
x
Reference in New Issue
Block a user