Immediate removed for mounted event issue
parent
6530cc61b0
commit
6ba55cd475
|
@ -16,20 +16,15 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
d_page: null
|
d_page: this.page
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
d_page(newValue) {
|
d_page(newValue) {
|
||||||
if (this.$refs.jtpInput && !this.$refs.jtpInput.focused) return;
|
|
||||||
|
|
||||||
this.$emit('page-change', newValue - 1);
|
this.$emit('page-change', newValue - 1);
|
||||||
},
|
},
|
||||||
page: {
|
page(newValue) {
|
||||||
handler(newValue) {
|
|
||||||
this.d_page = newValue;
|
this.d_page = newValue;
|
||||||
},
|
|
||||||
immediate: true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
Loading…
Reference in New Issue