瀏覽代碼

Merge branch 'master' of Hepper/comment into master

AdamFu 4 年之前
父節點
當前提交
d7e75b4f02
共有 4 個檔案被更改,包括 11 行新增7 行删除
  1. 3
    1
      lib/components/Editor/index.js
  2. 1
    1
      lib/components/Editor/index.js.map
  3. 4
    4
      lib/version.json
  4. 3
    1
      src/components/Editor/index.js

+ 3
- 1
lib/components/Editor/index.js 查看文件

144
   _createClass(Editor, [{
144
   _createClass(Editor, [{
145
     key: "componentDidMount",
145
     key: "componentDidMount",
146
     value: function componentDidMount() {
146
     value: function componentDidMount() {
147
-      this.props.app.sOssSts();
147
+      if (this.props.app.currentUser && this.props.app.currentUser.user_id > 0) {
148
+        this.props.app.sOssSts();
149
+      }
148
       if ((0, _helper.isFunction)(this.props.onRef)) {
150
       if ((0, _helper.isFunction)(this.props.onRef)) {
149
         this.props.onRef(this);
151
         this.props.onRef(this);
150
       }
152
       }

+ 1
- 1
lib/components/Editor/index.js.map
文件差異過大導致無法顯示
查看文件


+ 4
- 4
lib/version.json 查看文件

1
 {
1
 {
2
     "name":       "comment",
2
     "name":       "comment",
3
-    "buildDate":  1564888264706,
3
+    "buildDate":  1564979699301,
4
     "version":    "1.0.4",
4
     "version":    "1.0.4",
5
-    "numCommits": 178,
6
-    "hash":       "088923c",
7
-    "dirty":      false
5
+    "numCommits": 179,
6
+    "hash":       "083abcb",
7
+    "dirty":      true
8
 }
8
 }

+ 3
- 1
src/components/Editor/index.js 查看文件

72
   }
72
   }
73
 
73
 
74
   componentDidMount() {
74
   componentDidMount() {
75
-    this.props.app.sOssSts();
75
+    if (this.props.app.currentUser && this.props.app.currentUser.user_id > 0) {
76
+      this.props.app.sOssSts();
77
+    }
76
     if (isFunction(this.props.onRef)) {
78
     if (isFunction(this.props.onRef)) {
77
       this.props.onRef(this);
79
       this.props.onRef(this);
78
     }
80
     }