From bc5ec1017fd8a140ec5c30ea9e8ea839d5bf1bda Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 15 十二月 2020 16:22:20 +0800
Subject: [PATCH] 2020-12-15

---
 src/menu/components/table/normal-table/columns/markcolumn/index.jsx |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/menu/components/table/normal-table/columns/markcolumn/index.jsx b/src/menu/components/table/normal-table/columns/markcolumn/index.jsx
index bdc49d7..23ba1c8 100644
--- a/src/menu/components/table/normal-table/columns/markcolumn/index.jsx
+++ b/src/menu/components/table/normal-table/columns/markcolumn/index.jsx
@@ -8,6 +8,8 @@
 import MarkForm from './markform'
 import './index.scss'
 import { minkeIconSystem } from '@/utils/option.js'
+import zhCN from '@/locales/zh-CN/model.js'
+import enUS from '@/locales/en-US/model.js'
 import '@/assets/css/table.scss'
 
 const EditTable = asyncComponent(() => import('@/templates/zshare/editTable'))
@@ -15,12 +17,12 @@
 class MarkColumn extends Component {
   static propTpyes = {
     columns: PropTypes.array,  // 鏄剧ず鍒�
-    dict: PropTypes.object,    // 瀛楀吀椤�
     marks: PropTypes.object,
     onSubmit: PropTypes.func
   }
 
   state = {
+    dict: localStorage.getItem('lang') !== 'en-US' ? zhCN : enUS,
     marks: null,
     columns: null,
     visible: false,
@@ -293,8 +295,7 @@
   }
 
   render() {
-    const { dict } = this.props
-    const { marks, markColumns, visible, options, signs } = this.state
+    const { marks, markColumns, visible, options, signs, dict } = this.state
 
     return (
       <div style={{display: 'inline-block'}}>

--
Gitblit v1.8.0