Начата работа над SPA-приложением с использованием vuex и element-ui
This commit is contained in:
12
client/api/misc.js
Normal file
12
client/api/misc.js
Normal 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();
|
||||
|
||||
Reference in New Issue
Block a user