1
0
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:
Edwin Betancourt 2020-05-06 11:07:26 -04:00 committed by GitHub
parent 85468ffa0c
commit 74364f6c45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 31 additions and 9 deletions

View File

@ -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 ? '✔️' : '' }}

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {