Начата работа над SPA-приложением с использованием vuex и element-ui

This commit is contained in:
Book Pauk
2019-01-01 21:02:22 +07:00
parent 1eddfcdee2
commit 771cf32ed8
6 changed files with 134 additions and 91 deletions

12
client/api/misc.js Normal file
View File

@@ -0,0 +1,12 @@
import axios from 'axios';
async function test() {
try {
const response = await axios.post('/api/config', {params: ['version']});
console.log(response);
} catch (error) {
console.error(error.response.data);
}
}
test();