Mock icon indicating copy to clipboard operation
Mock copied to clipboard

can't use setup

Open MoyuSha opened this issue 5 years ago • 1 comments

Hi, when I use

Mock.init(axiosInstance);
Mock.setup({ timeout: '200-600' });

There always comes a error on console,as follows:

main.js?56d7:11 Uncaught TypeError: _mock__WEBPACK_IMPORTED_MODULE_8__.default.setup 
  is not a function
    at eval (main.js?56d7:11)
    at Module../src/main.js (app.js:17642)
    at __webpack_require__ (app.js:724)
    at fn (app.js:101)
    at Object.1 (app.js:18952)
    at __webpack_require__ (app.js:724)
    at app.js:791
    at app.js:794

my sockjs version is

"mockjs": {
      "version": "1.0.1-beta3",
      "resolved": "https://registry.npmjs.org/mockjs/-/mockjs-1.0.1-beta3.tgz",
      "integrity": "sha1-0jTzwnJWOXVk8slVFC6JGQlTcgk=",
      "dev": true,
      "requires": {
        "commander": "*"
      }
    },

please do me a favor. yours, many thanks

MoyuSha avatar Oct 02 '19 01:10 MoyuSha

我怎么没看到 init方法?? 报没定义

chencmgithub avatar Apr 03 '20 02:04 chencmgithub