askbot-dragon 1.6.56-beta → 1.6.57-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askbot-dragon",
3
- "version": "1.6.56-beta",
3
+ "version": "1.6.57-beta",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -146,9 +146,6 @@ export default {
146
146
  },
147
147
  mounted() {
148
148
  window.addEventListener('message',this.handleIframeMessage,false);
149
- if (!this.tagIds || this.tagIds.length == 0){
150
- this.getTextWatermark();
151
- }
152
149
  },
153
150
  props:{
154
151
  url:{
@@ -220,6 +217,14 @@ export default {
220
217
  this.getSummarySuccess();
221
218
  }
222
219
  }
220
+ },
221
+ knowledgeId:{
222
+ handler(val){
223
+ console.log('knowledgeId',val)
224
+ if (val){
225
+ this.getTextWatermark();
226
+ }
227
+ }
223
228
  }
224
229
  },
225
230
  computed:{
@@ -341,7 +346,7 @@ export default {
341
346
  let url = '/knowledge-api/open/knowledge/getPermissionInfo';
342
347
  let obj = {
343
348
  "knowledgeId":this.knowledgeId,
344
- "userId":sessionStorage.getItem('_userId') || localStorage.getItem('_userId')
349
+ "userId":sessionStorage.getItem('loginUserId')
345
350
  }
346
351
  this.$http.post(url,obj).then(res => {
347
352
  console.log('getTextWatermark',res.data.data)