mirror of
https://github.com/pinry/pinry.git
synced 2025-11-16 09:55:50 +01:00
Fix: Fix component not update error on board-url changing
This commit is contained in:
committed by
Isaac Bythewood
parent
ba21df6914
commit
83e85e9e7b
@@ -118,6 +118,11 @@ export default {
|
||||
},
|
||||
data: initialData,
|
||||
props: ['boardUsername'],
|
||||
watch: {
|
||||
boardUsername() {
|
||||
this.reset();
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
initialize() {
|
||||
this.fetchMore(true);
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
name: 'Boards4User',
|
||||
data() {
|
||||
return {
|
||||
username: null,
|
||||
username: '',
|
||||
};
|
||||
},
|
||||
components: {
|
||||
@@ -24,7 +24,7 @@ export default {
|
||||
this.initialize();
|
||||
},
|
||||
beforeRouteUpdate(to, from, next) {
|
||||
this.initialize();
|
||||
this.username = to.params.username;
|
||||
next();
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user