befly-admin-ui 1.17.0 → 1.19.0

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.
@@ -252,7 +252,7 @@ const $Method = {
252
252
  }
253
253
  }
254
254
 
255
- const res = await $Http(listEndpoint.path, data, listEndpoint.dropValues, listEndpoint.dropKeyValue);
255
+ const res = await $Http(listEndpoint.path, data, Array.isArray(listEndpoint.dropValues) ? ["", ...listEndpoint.dropValues] : [""], listEndpoint.dropKeyValue);
256
256
 
257
257
  if (seq !== $From.requestSeq) {
258
258
  return;
@@ -197,7 +197,7 @@ const $Method = {
197
197
  },
198
198
  fetchUserMenus: async function () {
199
199
  try {
200
- const { data } = await $Http("/core/menu/all");
200
+ const { data } = await $Http("/core/menu/all", {}, [""]);
201
201
  const lists = Array.isArray(data?.lists) ? data.lists : [];
202
202
 
203
203
  const normalizedLists = lists.map((menu) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "befly-admin-ui",
3
- "version": "1.17.0",
3
+ "version": "1.19.0",
4
4
  "gitHead": "071d17be177355cdd61f30659c6e4c5873f87d39",
5
5
  "private": false,
6
6
  "description": "Befly - 管理后台功能组件",
@@ -70,7 +70,6 @@ const $Data = reactive({
70
70
  endpoints: {
71
71
  list: {
72
72
  path: "/core/dict/select",
73
- dropValues: [""],
74
73
  buildData: () => {
75
74
  return {
76
75
  typeCode: $Data.searchTypeCode,
@@ -60,7 +60,7 @@ const $Data = reactive({
60
60
  endpoints: {
61
61
  list: {
62
62
  path: "/core/dictType/select",
63
- dropValues: [0, ""],
63
+ dropValues: [0],
64
64
  dropKeyValue: {
65
65
  keyword: [""]
66
66
  },
@@ -91,7 +91,7 @@ const $Data = reactive({
91
91
  endpoints: {
92
92
  list: {
93
93
  path: "/core/sysConfig/select",
94
- dropValues: [0, ""],
94
+ dropValues: [0],
95
95
  dropKeyValue: {
96
96
  group: [""]
97
97
  },
@@ -116,8 +116,7 @@ const $Data = reactive({
116
116
  ]),
117
117
  endpoints: {
118
118
  list: {
119
- path: "/core/email/logList",
120
- dropValues: [""]
119
+ path: "/core/email/logList"
121
120
  }
122
121
  },
123
122
  sendDialogVisible: false,
@@ -127,7 +127,6 @@ const $Data = reactive({
127
127
  endpoints: {
128
128
  list: {
129
129
  path: "/core/tongJi/errorList",
130
- dropValues: [""],
131
130
  dropKeyValue: {
132
131
  keyword: [""],
133
132
  errorType: [""],
@@ -58,8 +58,7 @@ const $Data = reactive({
58
58
  ]),
59
59
  endpoints: {
60
60
  list: {
61
- path: "/core/loginLog/select",
62
- dropValues: [""]
61
+ path: "/core/loginLog/select"
63
62
  }
64
63
  }
65
64
  });
@@ -79,7 +79,6 @@ const $Data = reactive({
79
79
  endpoints: {
80
80
  list: {
81
81
  path: "/core/operateLog/select",
82
- dropValues: [""],
83
82
  dropKeyValue: {
84
83
  module: [""],
85
84
  action: [""]
@@ -57,8 +57,7 @@ const $Data = reactive({
57
57
  ]),
58
58
  endpoints: {
59
59
  list: {
60
- path: "/core/admin/select",
61
- dropValues: [""]
60
+ path: "/core/admin/select"
62
61
  },
63
62
  delete: {
64
63
  path: "/core/admin/delete",
@@ -85,8 +85,7 @@ const $Data = reactive({
85
85
  ]),
86
86
  endpoints: {
87
87
  list: {
88
- path: "/core/role/select",
89
- dropValues: [""]
88
+ path: "/core/role/select"
90
89
  },
91
90
  delete: {
92
91
  path: "/core/role/delete",
@@ -173,7 +173,6 @@ const $Data = reactive({
173
173
  endpoints: {
174
174
  list: {
175
175
  path: "/core/source/imageList",
176
- dropValues: [""],
177
176
  dropKeyValue: {
178
177
  keyword: [""]
179
178
  },