qinyan 1 سال پیش
والد
کامیت
833a20e122
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      src/modules/editor/components/Viewport/Slider/SliderLeft/Sources/List.tsx

+ 3 - 3
src/modules/editor/components/Viewport/Slider/SliderLeft/Sources/List.tsx

@@ -77,7 +77,7 @@ export const Sources = defineComponent({
                 type="primary"
                 onClick={async () => {
                   await resource.actions.createMaterial();
-                  control.fresh();
+                  control.loadPage(1);
                 }}
               >
                 上传素材
@@ -115,13 +115,13 @@ export const Sources = defineComponent({
                       console.log(name);
                       if (name == "delete") {
                         await resource.actions.deleteMaterial(item);
-                        control.fresh();
+                        control.loadPage(1);
                         queenApi.messageSuccess("删除成功!");
                         return;
                       }
                       if (name == "edit") {
                         await resource.actions.editSource(item, sourceType);
-                        control.fresh();
+                        control.loadPage(1);
                         return;
                       }
                       if (name == "publish" || name == "unpublish") {