maofu
maofu
解决Mock.mock()中不能使用Promise和异步函数async的问题。 Addresses an issue where Promise and the asynchronous function async cannot be used in Mock.mock(). 你可以下载: You can download: ``` npm i mockjs-pro ``` https://www.npmjs.com/package/mockjs-pro?activeTab=readme
你可以这样配置脚本来暂时解决这个问题:`"start": "gulp --require tsx/dist/loader.cjs -f gulpfile.ts"`,记得安装tsx依赖,参考:https://github.com/element-plus/element-plus/blob/dev/internal/build/package.json
You can configure the script to solve this problem temporarily: `"start": "gulp --require tsx/dist/loader.cjs -f gulpfile.ts",` remember to install the tsx dependency, Reference: https://github.com/element-plus/element-plus/blob/dev/internal/build/package.json
 