hardlounge/client/js/commands/search.js
2021-05-06 03:22:09 +02:00

21 lines
290 B
JavaScript

"use strict";
import store from "../store";
import {router} from "../router";
function input(args) {
router.push({
name: "SearchResults",
params: {
id: store.state.activeChannel.channel.id,
},
query: {
q: args.join(" "),
},
});
return true;
}
export default {input};