diff --git a/src/stores/admin/protocol.ts b/src/stores/admin/protocol.ts index 3c637d8..8262291 100644 --- a/src/stores/admin/protocol.ts +++ b/src/stores/admin/protocol.ts @@ -100,5 +100,11 @@ export const useProtocolStore = defineStore("protocol", { }) .catch((err) => {}); }, + printProtocol() { + return http + .post(`/admin/protocol/${this.activeProtocol}/render`) + .then(() => {}) + .catch(() => {}); + }, }, }); diff --git a/src/views/admin/club/protocol/ProtocolRouting.vue b/src/views/admin/club/protocol/ProtocolRouting.vue index b11567f..f5380fd 100644 --- a/src/views/admin/club/protocol/ProtocolRouting.vue +++ b/src/views/admin/club/protocol/ProtocolRouting.vue @@ -6,6 +6,7 @@