mirror of
https://github.com/MisskeyIO/misskey
synced 2024-11-27 14:28:49 +09:00
Refactor
This commit is contained in:
parent
f8abc8193b
commit
728dd446b3
@ -33,17 +33,11 @@ export default Vue.extend({
|
||||
|
||||
watch: {
|
||||
src() {
|
||||
this.$store.commit('device/setTl', {
|
||||
src: this.src,
|
||||
arg: this.list
|
||||
});
|
||||
this.saveSrc();
|
||||
},
|
||||
|
||||
list() {
|
||||
this.$store.commit('device/setTl', {
|
||||
src: this.src,
|
||||
arg: this.list
|
||||
});
|
||||
this.saveSrc();
|
||||
}
|
||||
},
|
||||
|
||||
@ -65,6 +59,13 @@ export default Vue.extend({
|
||||
},
|
||||
|
||||
methods: {
|
||||
saveSrc() {
|
||||
this.$store.commit('device/setTl', {
|
||||
src: this.src,
|
||||
arg: this.list
|
||||
});
|
||||
},
|
||||
|
||||
warp(date) {
|
||||
(this.$refs.tl as any).warp(date);
|
||||
},
|
||||
|
@ -64,20 +64,12 @@ export default Vue.extend({
|
||||
watch: {
|
||||
src() {
|
||||
this.showNav = false;
|
||||
|
||||
this.$store.commit('device/setTl', {
|
||||
src: this.src,
|
||||
arg: this.list
|
||||
});
|
||||
this.saveSrc();
|
||||
},
|
||||
|
||||
list() {
|
||||
this.showNav = false;
|
||||
|
||||
this.$store.commit('device/setTl', {
|
||||
src: this.src,
|
||||
arg: this.list
|
||||
});
|
||||
this.saveSrc();
|
||||
},
|
||||
|
||||
showNav(v) {
|
||||
@ -115,6 +107,13 @@ export default Vue.extend({
|
||||
(this as any).apis.post();
|
||||
},
|
||||
|
||||
saveSrc() {
|
||||
this.$store.commit('device/setTl', {
|
||||
src: this.src,
|
||||
arg: this.list
|
||||
});
|
||||
},
|
||||
|
||||
warp() {
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user