Рабочий вариант с моками

This commit is contained in:
Sipachev Igor 2022-03-11 13:49:32 +07:00
parent b83319aa26
commit 5461b2241b
3 changed files with 19 additions and 2 deletions

View File

@ -8,4 +8,4 @@ export class HttpClient extends BaseClient {
}
}
export default new HttpClient('http://laen.sipachev.ru')
export default new HttpClient('http://placetgroup.sipachev.sv')

View File

@ -1,6 +1,7 @@
import { Component, Prop, Vue } from 'vue-property-decorator'
import VueClipboard from 'vue-clipboard2'
import { Registers } from '@/classes/DTO/Registers'
import httpClient from '@/api/Main/HttpClient'
Vue.use(VueClipboard)
@ -14,4 +15,12 @@ export default class Mocks extends Vue {
mounted () {
console.log('mounted')
}
saveMocks () {
httpClient.mockConfigurations({ personalId: '48907031677' })
.then((data: any) => {
console.log('saveMocks')
console.log(data)
})
}
}

View File

@ -2,7 +2,15 @@ import { AxiosResponse } from 'axios'
export default new Promise((resolve) => {
const response = {
data: {},
data: [
{
id: 'casdasdc34c342cr341c34r123d',
personalId: '48907031677',
code: 'xtee_mta',
value: '2',
active: true
}
],
status: 200,
statusText: 'OK',
headers: {},