新增接口Mock

Signed-off-by: anyueling <anyueling@huawei.com>
This commit is contained in:
anyueling
2022-08-24 09:40:26 +08:00
parent 5472d3ffb8
commit cd1209c73d
@@ -165,6 +165,12 @@ export function mockRequest() {
data: [RequestData],
};
const TaskState = {
path: "[PC Preview] unknow path",
responseCode: "[PC Preview] unknow responseCode",
message: "[PC Preview] unknow message",
};
const UploadTask = {
on: function (...args) {
console.warn("uploadTask.on interface mocked in the Previewer. How this interface works on the" +