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

master
Sipachev Igor 3 years ago
parent b83319aa26
commit 5461b2241b
  1. 2
      popup/src/api/Main/HttpClient.ts
  2. 9
      popup/src/components/mocks/script.ts
  3. 10
      popup/src/stubs/stubs/Main/MocksSchema/MocksSchemaSuccess.ts

@ -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…
Cancel
Save