Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
methods: { search: function () { this.searching = true; getData().then(function (res) => { this.docs = res; this.searching = false; }); } },
... computed: { list () { let arr = this.api_list let filtered = arr.filter(el => el.type === this.type) return filtered } } ...
withCallback()
vue-router
router.push()
if (this.$auth.user_id) { this.$router.push('/dashboard') } else { this.$router.push('/login') }