diff --git a/package.json b/package.json index a3089408..4dbeba80 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ }, "main": "background.js", "dependencies": { - "@types/js-beautify": "^1.13.2", "@types/mockjs": "^1.0.4", "@types/set-cookie-parser": "^2.4.1", "axios": "^0.21.1", @@ -28,7 +27,6 @@ "file-type": "^16.5.3", "form-data": "^4.0.0", "got": "^11.8.2", - "js-beautify": "^1.14.0", "js-cookie": "^2.2.1", "lodash": "^4.17.21", "mitt": "^3.0.0", diff --git a/src/@types/store.d.ts b/src/@types/store.d.ts index 9a6b3071..207514d0 100644 --- a/src/@types/store.d.ts +++ b/src/@types/store.d.ts @@ -172,6 +172,10 @@ type ApidocProjectBaseInfoState = { * 项目规则 */ rules: ApidocProjectRules, + /** + * 全局cookie信息 + */ + globalCookies: Record }; //=========================================================================// type ApidocTabType = "doc" | "config" | "paramsTemplate" | "onlineLink" | "exportDoc" | "importDoc" | "history" | "variable" | "mock" | "recycler" | "guide" diff --git a/src/renderer/components/apidoc/mock/g-mock.vue b/src/renderer/components/apidoc/mock/g-mock.vue index 9c370eee..116dd451 100644 --- a/src/renderer/components/apidoc/mock/g-mock.vue +++ b/src/renderer/components/apidoc/mock/g-mock.vue @@ -7,17 +7,112 @@