diff --git a/frontend/package.json b/frontend/package.json index b118bedf63..39b9284aeb 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -49,7 +49,7 @@ "@tiptap/vue-3": "^2.1.13", "@types/color": "^3.0.4", "@types/node": "^20.11.16", - "@vueuse/core": "^10.7.2", + "@vueuse/core": "^10.9.0", "@xmldom/xmldom": "^0.8.10", "ace-builds": "^1.24.2", "ahooks-vue": "^0.15.1", diff --git a/frontend/src/App.vue b/frontend/src/App.vue index c74e5dcbc1..e99f054c10 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -53,7 +53,7 @@ onBeforeMount(async () => { try { - await appStore.initSystemVersion(); // 初始化系统版本 + appStore.initSystemVersion(); // 初始化系统版本 // 企业版才校验license if (appStore.packageType === 'enterprise') { licenseStore.getValidateLicense(); @@ -115,7 +115,7 @@ setLocalStorage('salt', publicKey); }; - onMounted(async () => { + onBeforeMount(async () => { await getPublicKey(); if (WHITE_LIST.find((el) => el.path === window.location.hash.split('#')[1]) === undefined) { await checkIsLogin(); diff --git a/frontend/src/api/modules/api-test/scenario.ts b/frontend/src/api/modules/api-test/scenario.ts index 753fbccbed..fe0e44d78d 100644 --- a/frontend/src/api/modules/api-test/scenario.ts +++ b/frontend/src/api/modules/api-test/scenario.ts @@ -35,6 +35,7 @@ import { UpdateScenarioUrl, } from '@/api/requrls/api-test/scenario'; +import { ExecuteConditionProcessor } from '@/models/apiTest/common'; import { ApiScenarioBatchDeleteParams, ApiScenarioBatchEditParams, @@ -55,6 +56,9 @@ import { } from '@/models/apiTest/scenario'; import { AddModuleParams, CommonList, ModuleTreeNode, MoveModules, TransferFileParams } from '@/models/common'; +import type { RequestParam as CaseRequestParam } from '@/views/api-test/components/requestComposition/index.vue'; +import type { RequestParam } from '@/views/api-test/scenario/components/common/customApiDrawer.vue'; + // 更新模块 export function updateModule(data: ApiScenarioModuleUpdateParams) { return MSR.post({ url: UpdateModuleUrl, data }); @@ -207,7 +211,10 @@ export function getScenarioDetail(id: string) { // 获取场景步骤详情 export function getScenarioStep(stepId: string | number) { - return MSR.get({ url: GetScenarioStepUrl, params: stepId }); + return MSR.get>({ + url: GetScenarioStepUrl, + params: stepId, + }); } // 文件转存 diff --git a/frontend/src/components/business/ms-add-attachment/index.vue b/frontend/src/components/business/ms-add-attachment/index.vue index 7f0314eff9..d8c0c0b86b 100644 --- a/frontend/src/components/business/ms-add-attachment/index.vue +++ b/frontend/src/components/business/ms-add-attachment/index.vue @@ -68,31 +68,31 @@ arrow-class="hidden" :popup-offset="0" > - - - - +
+ + + + +