@qikdev/vue-ui 0.2.288 → 0.2.289

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/dist/lib.es.js CHANGED
@@ -47,7 +47,7 @@ import {
47
47
  vModelDynamic as Zn,
48
48
  } from "vue";
49
49
  import { EventDispatcher as jl } from "@qikdev/sdk";
50
- const fu = "0.2.288";
50
+ const fu = "0.2.289";
51
51
  class qt extends Error {}
52
52
  class mu extends qt {
53
53
  constructor(t) {
@@ -9378,9 +9378,9 @@ const te = {
9378
9378
  _id: i,
9379
9379
  };
9380
9380
  });
9381
- } else if (e.user) {
9382
- const t = e.field.referenceType,
9383
- n = {
9381
+ } else if (e.$sdk.auth.getCurrentToken()) {
9382
+ const n = e.field.referenceType,
9383
+ r = {
9384
9384
  filter: e.field.lockFilter,
9385
9385
  sort: {
9386
9386
  key: "title",
@@ -9391,12 +9391,12 @@ const te = {
9391
9391
  size: 1e3,
9392
9392
  },
9393
9393
  },
9394
- { items: r } = await e.$sdk.content.list(t, n);
9395
- e.dynamicOptions = r.map(function ({ _id: s, title: i }) {
9394
+ { items: s } = await e.$sdk.content.list(n, r);
9395
+ e.dynamicOptions = s.map(function ({ _id: i, title: l }) {
9396
9396
  return {
9397
- value: s,
9398
- title: i,
9399
- _id: s,
9397
+ value: i,
9398
+ title: l,
9399
+ _id: i,
9400
9400
  };
9401
9401
  });
9402
9402
  }