yuang-framework-ui-pc 1.1.62 → 1.1.63

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.
@@ -13,7 +13,7 @@ function getRoutePath(path) {
13
13
  if (!path || !path.includes("?")) {
14
14
  return path;
15
15
  }
16
- return path;
16
+ return path.substring(0, path.indexOf("?"));
17
17
  }
18
18
  function getRouteComponent(menu, name, func) {
19
19
  if (!menu.component || !isExternalLink(menu.component)) {
@@ -1,4 +1,4 @@
1
- import { defineComponent, mergeModels, ref, useModel, onMounted, resolveComponent, createBlock, openBlock } from "vue";
1
+ import { defineComponent, mergeModels, ref, useModel, onMounted, watch, resolveComponent, createBlock, openBlock } from "vue";
2
2
  import { ElMessageBox } from "element-plus/es";
3
3
  import { EleMessage } from "../utils/message";
4
4
  import { http } from "yuang-framework-ui-common/lib/config/httpConfig";
@@ -156,6 +156,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
156
156
  const handleRetryUpload = (uploadItem) => {
157
157
  handleUpload(uploadItem, true);
158
158
  };
159
+ watch(
160
+ () => props.modelValue,
161
+ () => {
162
+ init();
163
+ }
164
+ );
165
+ watch(
166
+ () => props.param,
167
+ () => {
168
+ init();
169
+ },
170
+ { deep: true }
171
+ );
159
172
  return (_ctx, _cache) => {
160
173
  const _component_ele_upload_list = resolveComponent("ele-upload-list");
161
174
  return openBlock(), createBlock(_component_ele_upload_list, {
@@ -15,7 +15,7 @@ function getRoutePath(path) {
15
15
  if (!path || !path.includes("?")) {
16
16
  return path;
17
17
  }
18
- return path;
18
+ return path.substring(0, path.indexOf("?"));
19
19
  }
20
20
  function getRouteComponent(menu, name, func) {
21
21
  if (!menu.component || !core.isExternalLink(menu.component)) {
@@ -157,6 +157,19 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
157
157
  const handleRetryUpload = (uploadItem) => {
158
158
  handleUpload(uploadItem, true);
159
159
  };
160
+ vue.watch(
161
+ () => props.modelValue,
162
+ () => {
163
+ init();
164
+ }
165
+ );
166
+ vue.watch(
167
+ () => props.param,
168
+ () => {
169
+ init();
170
+ },
171
+ { deep: true }
172
+ );
160
173
  return (_ctx, _cache) => {
161
174
  const _component_ele_upload_list = vue.resolveComponent("ele-upload-list");
162
175
  return vue.openBlock(), vue.createBlock(_component_ele_upload_list, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuang-framework-ui-pc",
3
- "version": "1.1.62",
3
+ "version": "1.1.63",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite --host --config vite.global.ts --mode dev",