diff --git a/frontend/src/i18n/zh.js b/frontend/src/i18n/zh.js index 43ef33ef..a1190253 100644 --- a/frontend/src/i18n/zh.js +++ b/frontend/src/i18n/zh.js @@ -151,6 +151,19 @@ export default { 'Detail Page Fields': '详情页字段', 'Detail Page URL': '详情页URL', 'All': '全部', + 'Stages': '阶段', + 'Process': '流程', + 'Stage Process': '流程图', + 'Stage Name': '阶段名称', + 'Start Stage': '开始阶段', + 'Engine': '引擎', + 'Selector Type': '选择器类别', + 'Selector': '选择器', + 'Is Attribute': '是否为属性', + 'Next Stage': '下一阶段', + 'No Next Stage': '没有下一阶段', + 'Fields': '字段', + 'Stage': '阶段', // 爬虫列表 'Name': '名称', diff --git a/frontend/src/store/modules/lang.js b/frontend/src/store/modules/lang.js index b1e57a04..dc6b8d18 100644 --- a/frontend/src/store/modules/lang.js +++ b/frontend/src/store/modules/lang.js @@ -1,5 +1,5 @@ const state = { - lang: window.localStorage.getItem('lang') || 'en' + lang: window.localStorage.getItem('lang') || 'zh' } const getters = { diff --git a/frontend/src/views/spider/SpiderList.vue b/frontend/src/views/spider/SpiderList.vue index 41007044..b185574e 100644 --- a/frontend/src/views/spider/SpiderList.vue +++ b/frontend/src/views/spider/SpiderList.vue @@ -34,22 +34,6 @@ :visible.sync="addDialogVisible" :before-close="onAddDialogClose"> - - - - - {{$t('Upload')}} - - - - - @@ -66,19 +50,23 @@ {{$t('Add')}} + + + + + {{$t('Upload')}} + + + + + - - - - - - - - - - - - @@ -323,7 +311,7 @@ export default { name: [{ required: true, message: 'Required Field', trigger: 'change' }] }, fileList: [], - spiderType: 'customized' + spiderType: 'configurable' } }, computed: { @@ -356,7 +344,6 @@ export default { onAdd () { this.$store.commit('spider/SET_SPIDER_FORM', {}) this.addDialogVisible = true - // this.onAddCustomized() }, onAddConfigurable () { this.$refs['addConfigurableForm'].validate(async res => {