diff --git a/package.json b/package.json index d6a4f05..ff68e8c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@easily-tools/mock-server-web", - "version": "1.0.0", + "version": "1.0.1", "files": [ "dist" ], diff --git a/src/i18n/en.ts b/src/i18n/en.ts index 03a5c07..e78364c 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -98,6 +98,8 @@ export default { param: 'param', responseConfig: 'responseConfig', sceneName: 'scene name', + apiName: 'api name', + apiRemarks: 'api remarks', iteration: 'Iteration', systemSetting: 'System Setting', }, diff --git a/src/i18n/zh.ts b/src/i18n/zh.ts index 36ef7ec..0b8a376 100644 --- a/src/i18n/zh.ts +++ b/src/i18n/zh.ts @@ -98,6 +98,8 @@ export default { param: '参数', responseConfig: '返回值配置', sceneName: '场景名', + apiName: '接口名', + apiRemarks: '接口备注', iteration: '迭代期', systemSetting: '系统设置', }, diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 245b0c0..c5a66a1 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -200,7 +200,7 @@ const handleMockItemSceneOperation = async (operation: string, mockItemBasicInfo case 'add': currentEditingSceneItem.value = { id: uuid(), - name: '场景名', + name: t('global.sceneName'), iteration: iterationList.value[0] ?? '', param: '{\r\n \r\n}', responseConf: 'export default (param: any) => {\r\n \r\n}', @@ -289,9 +289,9 @@ const handleAddMockItem = () => { basicInfo: { id: uuid(), path: '', - name: '接口名', + name: t('global.apiName'), type: 'HTTP', - remarks: '接口备注', + remarks: t('global.apiRemarks'), requestMethod: 'GET', mockPattern: 'mock', }, @@ -318,9 +318,9 @@ const handleGetMockList = async () => { basicInfo: { id: uuid(), path: '', - name: '接口名', + name: t('global.apiName'), type: 'HTTP', - remarks: '接口备注', + remarks: t('global.apiRemarks'), requestMethod: 'GET', mockPattern: 'mock', },