maofu

Results 4 comments of 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

![echarts](https://github.com/user-attachments/assets/4cc8eb33-409c-4136-ba24-02d687899476) ![image](https://github.com/user-attachments/assets/c5711e4a-8087-4b92-aa71-f17a2d14c006)