@yoooloo42/joker 1.0.19 → 1.0.21

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/index.cjs.js CHANGED
@@ -16168,11 +16168,6 @@ var script$4 = {
16168
16168
  },
16169
16169
  // eslint-disable-next-line
16170
16170
  hdlSuccess (response, file, fileList) { // 上传
16171
-
16172
- console.log('测试 000', response);
16173
- console.log('测试 111', file);
16174
- console.log('测试 222', fileList);
16175
-
16176
16171
  if (response.code === 0) {
16177
16172
  // 重置文件列表
16178
16173
  // 因为只能上传1个图片,这里需要清空图片列表
@@ -16231,10 +16226,10 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
16231
16226
  "on-success": $options.hdlSuccess
16232
16227
  }, {
16233
16228
  default: vue.withCtx(() => [
16234
- ($data.fileList.length>0 && $data.fileList[0].src)
16229
+ ($data.fileList.length>0 && $data.fileList[0].response && $data.fileList[0].response.data && $data.fileList[0].response.data.src)
16235
16230
  ? (vue.openBlock(), vue.createElementBlock("img", {
16236
16231
  key: 0,
16237
- src: $data.fileList[0].src,
16232
+ src: $data.fileList[0].response.data.src,
16238
16233
  class: "avatar",
16239
16234
  style: vue.normalizeStyle($options.hdlStyleAvatarImage())
16240
16235
  }, null, 12 /* STYLE, PROPS */, _hoisted_1$4))
@@ -16251,7 +16246,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
16251
16246
  ]),
16252
16247
  _: 1 /* STABLE */
16253
16248
  }, 8 /* PROPS */, ["style", "action", "file-list", "before-upload", "on-preview", "on-remove", "on-success"]),
16254
- ($data.fileList.length>0 && $data.fileList[0].src)
16249
+ ($data.fileList.length>0 && $data.fileList[0].response && $data.fileList[0].response.data && $data.fileList[0].response.data.src)
16255
16250
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$4, [
16256
16251
  vue.createVNode(_component_el_button, {
16257
16252
  size: "small",
@@ -16394,10 +16389,10 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
16394
16389
  "on-success": $options.hdlSuccess
16395
16390
  }, {
16396
16391
  default: vue.withCtx(() => [
16397
- ($data.fileList.length>0 && $data.fileList[0].src)
16392
+ ($data.fileList.length>0 && $data.fileList[0].response && $data.fileList[0].response.data && $data.fileList[0].response.data.src)
16398
16393
  ? (vue.openBlock(), vue.createElementBlock("img", {
16399
16394
  key: 0,
16400
- src: $data.fileList[0].src,
16395
+ src: $data.fileList[0].response.data.src,
16401
16396
  class: "avatar",
16402
16397
  style: vue.normalizeStyle($options.hdlStyleAvatarImage())
16403
16398
  }, null, 12 /* STYLE, PROPS */, _hoisted_1$3))
@@ -16414,7 +16409,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
16414
16409
  ]),
16415
16410
  _: 1 /* STABLE */
16416
16411
  }, 8 /* PROPS */, ["style", "action", "file-list", "before-upload", "on-preview", "on-remove", "on-success"]),
16417
- ($data.fileList.length>0 && $data.fileList[0].src)
16412
+ ($data.fileList.length>0 && $data.fileList[0].response && $data.fileList[0].response.data && $data.fileList[0].response.data.src)
16418
16413
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$3, [
16419
16414
  vue.createVNode(_component_el_button, {
16420
16415
  size: "small",