NervJS/taro-plugin-mock

找不到路由

Closed this issue · 1 comments

plugin-mock@0.0.8
报 Cannot GET /api/user/1 错误,
配置如下
config/dev.js

plugins: [
    [
      "@tarojs/plugin-mock",
      {
        mocks: {
          "GET /api/user/1": {
            name: 1,
          },
        },
      },
    ],
  ],

0.0.7 版本正常

用这个插件试试,我修复了一下:@quarkcms/plugin-mock