From c519b4e51fe07bf13a2a7e44abd648b8dc0c083d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 23 六月 2020 12:12:12 +0800 Subject: [PATCH] 2020-06-23 --- src/templates/modalconfig/source.jsx | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/templates/modalconfig/source.jsx b/src/templates/modalconfig/source.jsx index 8c4276e..4a52cbf 100644 --- a/src/templates/modalconfig/source.jsx +++ b/src/templates/modalconfig/source.jsx @@ -2,7 +2,7 @@ import zhCN from '@/locales/zh-CN/model.js' import enUS from '@/locales/en-US/model.js' -const CommonDict = (!localStorage.getItem('lang') || localStorage.getItem('lang') === 'zh-CN') ? zhCN : enUS +const CommonDict = localStorage.getItem('lang') !== 'en-US' ? zhCN : enUS export const BaseConfig = { type: 'Modal', @@ -74,31 +74,31 @@ export const SearchItems = [ { type: 'form', - label: CommonDict['header.form.text'], + label: CommonDict['model.form.text'], subType: 'text', url: '' }, { type: 'form', - label: CommonDict['header.form.number'], + label: CommonDict['model.form.number'], subType: 'number', url: '' }, { type: 'form', - label: CommonDict['header.form.select'], + label: CommonDict['model.form.select'], subType: 'select', url: '' }, { type: 'form', - label: CommonDict['header.form.multiselect'], + label: CommonDict['model.form.multiselect'], subType: 'multiselect', url: '' }, { type: 'form', - label: CommonDict['header.form.link'], + label: CommonDict['model.form.link'], subType: 'link', url: '' }, @@ -110,25 +110,25 @@ }, { type: 'form', - label: CommonDict['header.form.dateday'], + label: CommonDict['model.form.dateday'], subType: 'date', url: '' }, { type: 'form', - label: CommonDict['header.form.datemonth'], + label: CommonDict['model.form.datemonth'], subType: 'datemonth', url: '' }, { type: 'form', - label: CommonDict['header.form.datetime'], + label: CommonDict['model.form.datetime'], subType: 'datetime', url: '' }, { type: 'form', - label: CommonDict['header.form.textarea'], + label: CommonDict['model.form.textarea'], subType: 'textarea', url: '' }, -- Gitblit v1.8.0