Skip to content

Releases: uiwjs/uiw-admin

v5.2.13

11 Feb 06:42
Compare
Choose a tag to compare

v5.2.12...v5.2.13

v5.2.12

10 Feb 06:03
Compare
Choose a tag to compare

v5.2.11...v5.2.12

v5.2.11

10 Feb 02:50
Compare
Choose a tag to compare

v5.2.10...v5.2.11

v5.2.10

10 Feb 01:54
Compare
Choose a tag to compare

v5.2.9...v5.2.10

v5.2.9

09 Feb 08:51
Compare
Choose a tag to compare

v5.2.8...v5.2.9

v5.2.8

09 Feb 06:26
Compare
Choose a tag to compare

v5.2.7...v5.2.8

v5.2.7

09 Feb 01:28
Compare
Choose a tag to compare

v5.2.6...v5.2.7


新增一种 mock 代理 方式

import path from 'path'
import { MockerAPIOptions } from 'kkt'
import defaultConfig from '@uiw-admin/config'
import express from 'express'

export default defaultConfig({
  define: {
    AUTH: false,
    STORAGE: 'local',
  },
  // 第一种
+  proxySetup: (app: express.Application): MockerAPIOptions => {
+   return {
+      path: path.resolve('./mocker/index.js'),
+    }
+ },
})
// 第二种
// export const proxySetup = (): MockerAPIOptions => {
//   /**
//    * mocker-api that creates mocks for REST APIs.
//    * It will be helpful when you try to test your application without the actual REST API server.
//    * https://github.com/jaywcjlove/mocker-api
//    */
//   return {
//     path: path.resolve('./mocker/index.js'),
//     /**
//      * https://github.com/jaywcjlove/mocker-api/tree/96c2eb94694571e0e3003e6ad9ce1c809499f577#options
//      */
//     option: {},
//   }
// }

v5.2.6

08 Feb 08:43
Compare
Choose a tag to compare

v5.2.5...v5.2.6

v5.2.5

08 Feb 07:51
Compare
Choose a tag to compare

v5.2.4...v5.2.5

v5.2.4

07 Feb 07:39
Compare
Choose a tag to compare

v5.2.3...v5.2.4