Преглед на файлове

README.md添加已知bug说明

zhuth преди 8 години
родител
ревизия
f6f22ba91a
променени са 3 файла, в които са добавени 7 реда и са изтрити 3 реда
  1. 4 0
      kanban-client/README.md
  2. 2 2
      kanban-client/app/component/factory.dev.js
  3. 1 1
      kanban-client/app/main.dev.js

+ 4 - 0
kanban-client/README.md

@@ -60,6 +60,10 @@ columns[i].rowStyle---------------指定列数据列样式
 * 修改table列宽算法,按比例调整设置的列宽
 ##### 20171012
 * 解决模板内容为空报错问题
+
+#### 已知小bug
+* 多模板看板第一次进入需要多等待一个刷新时才会切换到下一个模板。
+* 如果看板第一个模板返回报错则后续正确模板也将无法显示。
 #### 运行
 * 本地运行
 ```

+ 2 - 2
kanban-client/app/component/factory.dev.js

@@ -11,7 +11,7 @@ class Factory extends React.Component {
 
     constructor(props) {
         super(props);
-        this.dev = 'local';
+        this.dev = 'local ';
         this.index = 0;
         this.state = {
             titleHeight: 0,
@@ -90,7 +90,7 @@ class Factory extends React.Component {
         if (refresh.next) {
             if (refresh.next.enable) {
                 this.refreshNext = setInterval(function () {
-                    if (this.index == codes.length - 1) {
+                    if (this.index >= codes.length - 1) {
                         this.index = 0;
                     } else {
                         this.index++;

+ 1 - 1
kanban-client/app/main.dev.js

@@ -3,7 +3,7 @@ import ReactDOM from 'react-dom';
 import Factory from './component/factory.dev.js';
 import DateFormatter from './utils/DateTimeUtils.js';
 
-var code = '57203C76611';
+var code = '5B9B3019436';
 
 ReactDOM.render(
     <Factory code={[code]} />,