This commit is contained in:
syuilo 2018-05-27 02:56:54 +09:00
parent f8abc8193b
commit 728dd446b3
2 changed files with 18 additions and 18 deletions

View file

@ -33,17 +33,11 @@ export default Vue.extend({
watch: { watch: {
src() { src() {
this.$store.commit('device/setTl', { this.saveSrc();
src: this.src,
arg: this.list
});
}, },
list() { list() {
this.$store.commit('device/setTl', { this.saveSrc();
src: this.src,
arg: this.list
});
} }
}, },
@ -65,6 +59,13 @@ export default Vue.extend({
}, },
methods: { methods: {
saveSrc() {
this.$store.commit('device/setTl', {
src: this.src,
arg: this.list
});
},
warp(date) { warp(date) {
(this.$refs.tl as any).warp(date); (this.$refs.tl as any).warp(date);
}, },

View file

@ -64,20 +64,12 @@ export default Vue.extend({
watch: { watch: {
src() { src() {
this.showNav = false; this.showNav = false;
this.saveSrc();
this.$store.commit('device/setTl', {
src: this.src,
arg: this.list
});
}, },
list() { list() {
this.showNav = false; this.showNav = false;
this.saveSrc();
this.$store.commit('device/setTl', {
src: this.src,
arg: this.list
});
}, },
showNav(v) { showNav(v) {
@ -115,6 +107,13 @@ export default Vue.extend({
(this as any).apis.post(); (this as any).apis.post();
}, },
saveSrc() {
this.$store.commit('device/setTl', {
src: this.src,
arg: this.list
});
},
warp() { warp() {
} }