base.ts 242 B

1234567
  1. import path from 'path'
  2. import { createDefineMock } from 'vite-plugin-mock-dev-server'
  3. export const defineMock = createDefineMock((mock) => {
  4. // 拼接url
  5. mock.url = path.join(import.meta.env.VITE_APP_BASE_API + '/api/v1/', mock.url)
  6. })