@jx3box/jx3box-editor 1.5.2 → 1.5.3

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": "@jx3box/jx3box-editor",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "description": "JX3BOX Article & Editor",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -36,9 +36,13 @@ function loadResource(type, query, params) {
36
36
  }
37
37
  }
38
38
 
39
- function loadStat() {
39
+ function loadStat({client = 'std'} = {}) {
40
40
  return axios
41
- .get(__node)
41
+ .get(__node, {
42
+ params: {
43
+ client,
44
+ }
45
+ })
42
46
  .then((res) => {
43
47
  return res.data;
44
48
  })
package/src/Resource.vue CHANGED
@@ -296,6 +296,12 @@ export default {
296
296
  html: function(newval) {
297
297
  this.$emit("update", newval);
298
298
  },
299
+ client: function() {
300
+ loadStat({client: this.client}).then((data) => {
301
+ this.stat = data;
302
+ this.actived = true;
303
+ });
304
+ },
299
305
  },
300
306
  methods: {
301
307
  getData: function(page = 1, append = false) {
@@ -482,7 +488,7 @@ export default {
482
488
  openDialog: function() {
483
489
  this.dialogVisible = true;
484
490
  if (!this.actived) {
485
- loadStat().then((data) => {
491
+ loadStat({client: this.client}).then((data) => {
486
492
  this.stat = data;
487
493
  this.actived = true;
488
494
  });