widget.qw 1.0.79 → 1.0.81

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/.env.development CHANGED
@@ -7,4 +7,4 @@ VITE_NEED_LOGIN_CODE=401
7
7
  # 注意:发布时 VITE_IS_DEBUG必须配置为false
8
8
  # 本地开发时 VITE_IS_DEBUG必须配置为true
9
9
  VITE_IS_DEBUG=true
10
- VITE_DEBUG_TOKEN= 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiJIb3VNdSIsInJuU3RyIjoiWWo2V3NLRWdKYU9kb2FzMEZFOUFKZWxyTTJzMGVJQWkifQ.wiKRQYqs2lbFC8_56qnLzfKV9H0vbn2qyGG56qmNlwg'
10
+ VITE_DEBUG_TOKEN= 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiJIb3VNdSIsInJuU3RyIjoiY0hNaG1ZU1JsdlRWdlZkZHZMaHR6dVlGWXFCN3lGZkgifQ.CCwMRLeLNpgkstsB80c5-ywekZu9fuM3i-U35tJEvb0'
package/build/style.css CHANGED
@@ -394,13 +394,13 @@
394
394
  cursor: not-allowed;
395
395
  opacity: 1;
396
396
  -webkit-text-fill-color: #000;
397
- }.image-box .cover[data-v-92119e14] {
397
+ }.image-box .cover[data-v-7ebfc739] {
398
398
  width: 80px;
399
399
  height: 80px;
400
- }[data-v-df75f4fa] .label {
400
+ }[data-v-cf8ec8a0] .label {
401
401
  color: #000 !important;
402
402
  }
403
- [data-v-df75f4fa] .van-field__control:disabled {
403
+ [data-v-cf8ec8a0] .van-field__control:disabled {
404
404
  color: #000 !important;
405
405
  cursor: not-allowed;
406
406
  opacity: 1;
@@ -2971,6 +2971,7 @@ function removeToken() {
2971
2971
  const props2auth = (props) => {
2972
2972
  return {
2973
2973
  isRequired: computed(() => {
2974
+ console.log("111111111", props);
2974
2975
  if (props.auth) {
2975
2976
  return props.auth == "require";
2976
2977
  }
@@ -19943,7 +19944,7 @@ const _sfc_main$j = {
19943
19944
  }
19944
19945
  };
19945
19946
  var ImagePicker = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-16be97a4"]]);
19946
- var images_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-box .cover[data-v-92119e14] {\n width: 80px;\n height: 80px;\n}")();
19947
+ var images_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-box .cover[data-v-7ebfc739] {\n width: 80px;\n height: 80px;\n}")();
19947
19948
  const _hoisted_1$c = {
19948
19949
  class: "image-box"
19949
19950
  };
@@ -20021,9 +20022,15 @@ const _sfc_main$i = {
20021
20022
  });
20022
20023
  const onAfterRead = (e) => __async(this, null, function* () {
20023
20024
  console.log("onAfterRead", e);
20024
- if (e && e.length > 0) {
20025
- for (var i = 0; i < e.length; i++) {
20026
- let compress_file = e[i].file;
20025
+ let files2 = [];
20026
+ if (e && Array.isArray(e) && e.length > 0) {
20027
+ files2 = e;
20028
+ } else {
20029
+ files2 = [e];
20030
+ }
20031
+ if (files2 && files2.length > 0) {
20032
+ for (var i = 0; i < files2.length; i++) {
20033
+ let compress_file = files2[i].file;
20027
20034
  if (props.compress) {
20028
20035
  compress_file = yield util.compress_image(compress_file);
20029
20036
  }
@@ -20042,6 +20049,20 @@ const _sfc_main$i = {
20042
20049
  }
20043
20050
  return Promise.resolve(e);
20044
20051
  }
20052
+ console.log("onAfterRead", e);
20053
+ for (var i = 0; i < files2.length; i++) {
20054
+ let params = {
20055
+ file: files2[i].file
20056
+ };
20057
+ let res = yield util.file_upload(params);
20058
+ if (res.code == 200) {
20059
+ if (props.multiple)
20060
+ modelValue.value = [...modelValue.value || [], res.data];
20061
+ else
20062
+ modelValue.value = res.data;
20063
+ }
20064
+ }
20065
+ return Promise.resolve(e);
20045
20066
  });
20046
20067
  const onBeforeDelete = (e) => {
20047
20068
  let newUrls = props.modelValue.filter((item) => {
@@ -20119,7 +20140,7 @@ const _sfc_main$i = {
20119
20140
  src: cover,
20120
20141
  onClick: ($event) => onPreview(i)
20121
20142
  }, null, 8, _hoisted_2$7);
20122
- }), 128)) : createCommentVNode("", true), unref(modelValue).length > props.maxPreview && (unref(isReadonly) || unref(isDisabled)) ? (openBlock(), createBlock(_component_van_icon, {
20143
+ }), 128)) : createCommentVNode("", true), (unref(modelValue) || []).length > props.maxPreview && (unref(isReadonly) || unref(isDisabled)) ? (openBlock(), createBlock(_component_van_icon, {
20123
20144
  key: 3,
20124
20145
  name: "ellipsis",
20125
20146
  onClick: onToggleMore
@@ -20129,8 +20150,8 @@ const _sfc_main$i = {
20129
20150
  };
20130
20151
  }
20131
20152
  };
20132
- var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-92119e14"]]);
20133
- var FilePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-df75f4fa] .label {\n color: #000 !important;\n}\n[data-v-df75f4fa] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
20153
+ var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-7ebfc739"]]);
20154
+ var FilePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-cf8ec8a0] .label {\n color: #000 !important;\n}\n[data-v-cf8ec8a0] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
20134
20155
  const _hoisted_1$b = {
20135
20156
  class: "file-box"
20136
20157
  };
@@ -20207,29 +20228,25 @@ const _sfc_main$h = {
20207
20228
  };
20208
20229
  const onAfterRead = (e) => __async(this, null, function* () {
20209
20230
  console.log("onAfterRead", e);
20210
- if (props.multiple) {
20211
- if (e && e.length > 0) {
20212
- for (var i = 0; i < e.length; i++) {
20213
- let params = {
20214
- file: e[i].file
20215
- };
20216
- let res = yield util.file_upload(params);
20217
- if (res.code == 200) {
20218
- modelValue.value = [...modelValue.value || [], res.data];
20219
- }
20220
- }
20221
- return Promise.resolve(e);
20222
- }
20231
+ let files2 = [];
20232
+ if (e && Array.isArray(e) && e.length > 0) {
20233
+ files2 = e;
20223
20234
  } else {
20235
+ files2 = [e];
20236
+ }
20237
+ for (var i = 0; i < files2.length; i++) {
20224
20238
  let params = {
20225
- file: e.file
20239
+ file: files2[i].file
20226
20240
  };
20227
20241
  let res = yield util.file_upload(params);
20228
20242
  if (res.code == 200) {
20229
- modelValue.value = res.data;
20230
- return Promise.resolve(e);
20243
+ if (props.multiple)
20244
+ modelValue.value = [...modelValue.value || [], res.data];
20245
+ else
20246
+ modelValue.value = res.data;
20231
20247
  }
20232
20248
  }
20249
+ return Promise.resolve(e);
20233
20250
  });
20234
20251
  const onBeforeDelete = (e) => {
20235
20252
  console.log("onBeforeDelete", e);
@@ -20296,7 +20313,7 @@ const _sfc_main$h = {
20296
20313
  };
20297
20314
  }
20298
20315
  };
20299
- var FilePicker = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-df75f4fa"]]);
20316
+ var FilePicker = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-cf8ec8a0"]]);
20300
20317
  var SingleUserSelector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.user-popup[data-v-a489ca4c] {\r\n width: 100%;\r\n overflow: hidden;\n}\n.department-selector[data-v-a489ca4c] {\r\n padding: 10px;\n}\n.search-buttons[data-v-a489ca4c] {\r\n display: flex;\r\n gap: 10px;\n}\n.clear-btn[data-v-a489ca4c] {\r\n background-color: #f2f3f5;\r\n border: none;\r\n border-radius: 4px;\r\n padding: 4px 8px;\r\n font-size: 14px;\n}\n.confirm-btn[data-v-a489ca4c] {\r\n background-color: #1989fa;\r\n color: white;\r\n border: none;\r\n border-radius: 4px;\r\n padding: 4px 8px;\r\n font-size: 14px;\n}\n.no-results[data-v-a489ca4c] {\r\n text-align: center;\r\n padding: 20px;\r\n color: #969799;\n}\n.picker-header[data-v-a489ca4c] {\r\n padding: 10px;\r\n border-bottom: 1px solid #ebedf0;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\n}\n.current-path[data-v-a489ca4c] {\r\n flex: 1;\r\n font-size: 14px;\r\n color: #323233;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\n}\n.header-right[data-v-a489ca4c] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\n.cancel-btn[data-v-a489ca4c] {\r\n color: #969799;\r\n margin-right: 5px;\n}\n.scroll-container[data-v-a489ca4c] {\r\n height: calc(80vh - 150px);\r\n overflow-y: auto;\n}\r\n")();
20301
20318
  const _hoisted_1$a = {
20302
20319
  class: "department-selector"
@@ -2974,6 +2974,7 @@ var __async = (__this, __arguments, generator) => {
2974
2974
  const props2auth = (props) => {
2975
2975
  return {
2976
2976
  isRequired: vue.computed(() => {
2977
+ console.log("111111111", props);
2977
2978
  if (props.auth) {
2978
2979
  return props.auth == "require";
2979
2980
  }
@@ -19946,7 +19947,7 @@ var __async = (__this, __arguments, generator) => {
19946
19947
  }
19947
19948
  };
19948
19949
  var ImagePicker = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-16be97a4"]]);
19949
- var images_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-box .cover[data-v-92119e14] {\n width: 80px;\n height: 80px;\n}")();
19950
+ var images_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-box .cover[data-v-7ebfc739] {\n width: 80px;\n height: 80px;\n}")();
19950
19951
  const _hoisted_1$c = {
19951
19952
  class: "image-box"
19952
19953
  };
@@ -20024,9 +20025,15 @@ var __async = (__this, __arguments, generator) => {
20024
20025
  });
20025
20026
  const onAfterRead = (e) => __async(this, null, function* () {
20026
20027
  console.log("onAfterRead", e);
20027
- if (e && e.length > 0) {
20028
- for (var i = 0; i < e.length; i++) {
20029
- let compress_file = e[i].file;
20028
+ let files2 = [];
20029
+ if (e && Array.isArray(e) && e.length > 0) {
20030
+ files2 = e;
20031
+ } else {
20032
+ files2 = [e];
20033
+ }
20034
+ if (files2 && files2.length > 0) {
20035
+ for (var i = 0; i < files2.length; i++) {
20036
+ let compress_file = files2[i].file;
20030
20037
  if (props.compress) {
20031
20038
  compress_file = yield util.compress_image(compress_file);
20032
20039
  }
@@ -20045,6 +20052,20 @@ var __async = (__this, __arguments, generator) => {
20045
20052
  }
20046
20053
  return Promise.resolve(e);
20047
20054
  }
20055
+ console.log("onAfterRead", e);
20056
+ for (var i = 0; i < files2.length; i++) {
20057
+ let params = {
20058
+ file: files2[i].file
20059
+ };
20060
+ let res = yield util.file_upload(params);
20061
+ if (res.code == 200) {
20062
+ if (props.multiple)
20063
+ modelValue.value = [...modelValue.value || [], res.data];
20064
+ else
20065
+ modelValue.value = res.data;
20066
+ }
20067
+ }
20068
+ return Promise.resolve(e);
20048
20069
  });
20049
20070
  const onBeforeDelete = (e) => {
20050
20071
  let newUrls = props.modelValue.filter((item) => {
@@ -20122,7 +20143,7 @@ var __async = (__this, __arguments, generator) => {
20122
20143
  src: cover,
20123
20144
  onClick: ($event) => onPreview(i)
20124
20145
  }, null, 8, _hoisted_2$7);
20125
- }), 128)) : vue.createCommentVNode("", true), vue.unref(modelValue).length > props.maxPreview && (vue.unref(isReadonly) || vue.unref(isDisabled)) ? (vue.openBlock(), vue.createBlock(_component_van_icon, {
20146
+ }), 128)) : vue.createCommentVNode("", true), (vue.unref(modelValue) || []).length > props.maxPreview && (vue.unref(isReadonly) || vue.unref(isDisabled)) ? (vue.openBlock(), vue.createBlock(_component_van_icon, {
20126
20147
  key: 3,
20127
20148
  name: "ellipsis",
20128
20149
  onClick: onToggleMore
@@ -20132,8 +20153,8 @@ var __async = (__this, __arguments, generator) => {
20132
20153
  };
20133
20154
  }
20134
20155
  };
20135
- var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-92119e14"]]);
20136
- var FilePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-df75f4fa] .label {\n color: #000 !important;\n}\n[data-v-df75f4fa] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
20156
+ var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-7ebfc739"]]);
20157
+ var FilePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-cf8ec8a0] .label {\n color: #000 !important;\n}\n[data-v-cf8ec8a0] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
20137
20158
  const _hoisted_1$b = {
20138
20159
  class: "file-box"
20139
20160
  };
@@ -20210,29 +20231,25 @@ var __async = (__this, __arguments, generator) => {
20210
20231
  };
20211
20232
  const onAfterRead = (e) => __async(this, null, function* () {
20212
20233
  console.log("onAfterRead", e);
20213
- if (props.multiple) {
20214
- if (e && e.length > 0) {
20215
- for (var i = 0; i < e.length; i++) {
20216
- let params = {
20217
- file: e[i].file
20218
- };
20219
- let res = yield util.file_upload(params);
20220
- if (res.code == 200) {
20221
- modelValue.value = [...modelValue.value || [], res.data];
20222
- }
20223
- }
20224
- return Promise.resolve(e);
20225
- }
20234
+ let files2 = [];
20235
+ if (e && Array.isArray(e) && e.length > 0) {
20236
+ files2 = e;
20226
20237
  } else {
20238
+ files2 = [e];
20239
+ }
20240
+ for (var i = 0; i < files2.length; i++) {
20227
20241
  let params = {
20228
- file: e.file
20242
+ file: files2[i].file
20229
20243
  };
20230
20244
  let res = yield util.file_upload(params);
20231
20245
  if (res.code == 200) {
20232
- modelValue.value = res.data;
20233
- return Promise.resolve(e);
20246
+ if (props.multiple)
20247
+ modelValue.value = [...modelValue.value || [], res.data];
20248
+ else
20249
+ modelValue.value = res.data;
20234
20250
  }
20235
20251
  }
20252
+ return Promise.resolve(e);
20236
20253
  });
20237
20254
  const onBeforeDelete = (e) => {
20238
20255
  console.log("onBeforeDelete", e);
@@ -20299,7 +20316,7 @@ var __async = (__this, __arguments, generator) => {
20299
20316
  };
20300
20317
  }
20301
20318
  };
20302
- var FilePicker = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-df75f4fa"]]);
20319
+ var FilePicker = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-cf8ec8a0"]]);
20303
20320
  var SingleUserSelector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.user-popup[data-v-a489ca4c] {\r\n width: 100%;\r\n overflow: hidden;\n}\n.department-selector[data-v-a489ca4c] {\r\n padding: 10px;\n}\n.search-buttons[data-v-a489ca4c] {\r\n display: flex;\r\n gap: 10px;\n}\n.clear-btn[data-v-a489ca4c] {\r\n background-color: #f2f3f5;\r\n border: none;\r\n border-radius: 4px;\r\n padding: 4px 8px;\r\n font-size: 14px;\n}\n.confirm-btn[data-v-a489ca4c] {\r\n background-color: #1989fa;\r\n color: white;\r\n border: none;\r\n border-radius: 4px;\r\n padding: 4px 8px;\r\n font-size: 14px;\n}\n.no-results[data-v-a489ca4c] {\r\n text-align: center;\r\n padding: 20px;\r\n color: #969799;\n}\n.picker-header[data-v-a489ca4c] {\r\n padding: 10px;\r\n border-bottom: 1px solid #ebedf0;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\n}\n.current-path[data-v-a489ca4c] {\r\n flex: 1;\r\n font-size: 14px;\r\n color: #323233;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\n}\n.header-right[data-v-a489ca4c] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\n.cancel-btn[data-v-a489ca4c] {\r\n color: #969799;\r\n margin-right: 5px;\n}\n.scroll-container[data-v-a489ca4c] {\r\n height: calc(80vh - 150px);\r\n overflow-y: auto;\n}\r\n")();
20304
20321
  const _hoisted_1$a = {
20305
20322
  class: "department-selector"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "widget.qw",
3
3
  "private": false,
4
- "version": "1.0.79",
4
+ "version": "1.0.81",
5
5
  "description": "marqstree Vue3组件库",
6
6
  "main": "build/widget.qw.es.js",
7
7
  "keywords": [
@@ -86,32 +86,29 @@ const onClickPreview = (e) => {
86
86
  const onAfterRead = async (e) => {
87
87
  console.log('onAfterRead', e)
88
88
 
89
- if (props.multiple) {
90
- if (e && e.length > 0) {
91
- for (var i = 0; i < e.length; i++) {
92
- let params = {
93
- file: e[i].file
94
- }
95
89
 
96
- let res = await util.file_upload(params)
97
- if (res.code == 200) {
98
- modelValue.value = [...(modelValue.value || []), res.data]
99
- }
100
- }
90
+ let files = []
91
+ if (e && Array.isArray(e) && e.length > 0) {
92
+ files = e
93
+ }else{
94
+ files = [e]
95
+ }
101
96
 
102
- return Promise.resolve(e)
103
- }
104
- } else {
97
+ for (var i = 0; i < files.length; i++) {
105
98
  let params = {
106
- file: e.file
99
+ file: files[i].file
107
100
  }
108
101
 
109
102
  let res = await util.file_upload(params)
110
103
  if (res.code == 200) {
111
- modelValue.value = res.data
112
- return Promise.resolve(e)
104
+ if(props.multiple)
105
+ modelValue.value = [...(modelValue.value || []), res.data]
106
+ else
107
+ modelValue.value = res.data
113
108
  }
114
109
  }
110
+
111
+ return Promise.resolve(e)
115
112
  }
116
113
 
117
114
  const onBeforeDelete = (e) => {
@@ -13,7 +13,7 @@
13
13
  :show-upload="!isReadonly" />
14
14
  <img class="cover" v-if="isReadonly || isDisabled" v-for="(cover, i) in previews" :key="i" :src="cover"
15
15
  @click="onPreview(i)" />
16
- <van-icon v-if="modelValue.length > props.maxPreview && (isReadonly || isDisabled)" name="ellipsis"
16
+ <van-icon v-if="(modelValue || []).length > props.maxPreview && (isReadonly || isDisabled)" name="ellipsis"
17
17
  @click="onToggleMore" />
18
18
  </div>
19
19
  </template>
@@ -94,9 +94,16 @@ onMounted(() => {
94
94
  const onAfterRead = async (e) => {
95
95
  console.log('onAfterRead', e)
96
96
 
97
- if (e && e.length > 0) {
98
- for (var i = 0; i < e.length; i++) {
99
- let compress_file = e[i].file
97
+ let files = []
98
+ if (e && Array.isArray(e) && e.length > 0) {
99
+ files = e
100
+ }else{
101
+ files = [e]
102
+ }
103
+
104
+ if (files && files.length > 0) {
105
+ for (var i = 0; i < files.length; i++) {
106
+ let compress_file = files[i].file
100
107
  if (props.compress) {
101
108
  compress_file = await util.compress_image(compress_file)
102
109
  }
@@ -119,6 +126,27 @@ const onAfterRead = async (e) => {
119
126
 
120
127
  return Promise.resolve(e)
121
128
  }
129
+
130
+ console.log('onAfterRead', e)
131
+
132
+
133
+
134
+
135
+ for (var i = 0; i < files.length; i++) {
136
+ let params = {
137
+ file: files[i].file
138
+ }
139
+
140
+ let res = await util.file_upload(params)
141
+ if (res.code == 200) {
142
+ if(props.multiple)
143
+ modelValue.value = [...(modelValue.value || []), res.data]
144
+ else
145
+ modelValue.value = res.data
146
+ }
147
+ }
148
+
149
+ return Promise.resolve(e)
122
150
  }
123
151
 
124
152
  const onBeforeDelete = (e) => {
@@ -24,6 +24,7 @@ export function removeToken() {
24
24
  export const props2auth = (props) => {
25
25
  return {
26
26
  isRequired: computed(() => {
27
+ console.log('111111111', props)
27
28
  if (props.auth) {
28
29
  return props.auth == 'require'
29
30
  }
@@ -9,12 +9,18 @@ import { onMounted, reactive, watch } from "vue";
9
9
 
10
10
  const data = reactive({
11
11
  auth:'readonly',
12
- urls: ['http://www.zjpsjdsb.online/static//HrMi9Q2J.png','http://www.zjpsjdsb.online/static//HrMi9Q2J.png','http://www.zjpsjdsb.online/static//HrMi9Q2J.png','http://www.zjpsjdsb.online/static//HrMi9Q2J.png','http://www.zjpsjdsb.online/static//HrMi9Q2J.png','http://www.zjpsjdsb.online/static//HrMi9Q2J.png']
12
+ urls: []
13
13
  })
14
14
 
15
15
  watch(()=>data.url,(newVal,oldVal)=>{
16
16
  console.log(newVal,oldVal)
17
17
  })
18
+
19
+ onMounted(()=>{
20
+ setTimeout(()=>{
21
+ data.auth = 'require'
22
+ },3000)
23
+ })
18
24
  </script>
19
25
 
20
26
  <style lang="scss" scoped>