Skip to content

Commit ba28812

Browse files
committed
Import querystring utility and make it available
1 parent 3e39b72 commit ba28812

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,17 @@ import settings from './components/Settings'
3535

3636
// Utilities
3737
import base64 from 'base-64'
38+
// This is to serialize parameters to send them as URLencoded
39+
// https://github.com/axios/axios/issues/350#issuecomment-227270046
40+
import querystring from 'querystring'
3841

3942
// Configuration
4043
Vue.use(VueRouter);
4144
Vue.use(Vuetify)
4245

4346
Vue.prototype.$axios = axios.create();
4447
Vue.prototype.$base64 = base64
48+
Vue.prototype.$qs = querystring
4549

4650
Vue.config.productionTip = false;
4751

0 commit comments

Comments
 (0)