king
2020-06-23 c519b4e51fe07bf13a2a7e44abd648b8dc0c083d
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: ''
  },