|
@@ -1,7 +1,5 @@
|
|
|
import { queenApi } from "queenjs";
|
|
|
import { ResourceModule } from "..";
|
|
|
-import { PromotionController } from "../controllers/PromotionController";
|
|
|
-import { PageListController } from "@queenjs/controllers";
|
|
|
|
|
|
export const promotionAction = ResourceModule.action({
|
|
|
async renamePromotion(record: any) {
|
|
@@ -21,7 +19,7 @@ export const promotionAction = ResourceModule.action({
|
|
|
});
|
|
|
if (!res) return;
|
|
|
await this.https.deletePromotion(record._id);
|
|
|
- this.controls.promotionListCtrl.fresh();
|
|
|
+ // this.controls.promotionListCtrl.fresh();
|
|
|
},
|
|
|
|
|
|
async createPromotion() {
|
|
@@ -32,6 +30,5 @@ export const promotionAction = ResourceModule.action({
|
|
|
const res = await this.https.createPromotion({ title });
|
|
|
const url = `${location.origin}/editor.html#/?id=${res.result}`;
|
|
|
location.href = url;
|
|
|
- }
|
|
|
-
|
|
|
+ },
|
|
|
});
|