mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-09-10 02:41:34 +08:00
14 lines
345 B
Vue
14 lines
345 B
Vue
<template>
|
|
<div class="app-container">
|
|
<aside style="margin-top:15px;">
|
|
Here we use window.print() to implement the feature of downloading PDF.
|
|
</aside>
|
|
<router-link target="_blank" to="/pdf/download">
|
|
<el-button type="primary">
|
|
Click to download PDF
|
|
</el-button>
|
|
</router-link>
|
|
</div>
|
|
</template>
|
|
|