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