Mock
Mock copied to clipboard
can't use setup
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
我怎么没看到 init方法?? 报没定义