Рабочий вариант с моками
This commit is contained in:
parent
b83319aa26
commit
5461b2241b
@ -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')
|
||||
|
@ -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)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -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: {},
|
||||
|
Loading…
Reference in New Issue
Block a user