Commit f4f1f42a by 黑潮

fix: 修复静态资源路径错误

parent 4bf466de
......@@ -16,7 +16,7 @@
<span slot="tip"></span>
<el-button icon="iconfont-components4 icon-cp-shangc upload-icon">上传</el-button>
</dm-upload-file>
<el-link class="ml20" style="position:absolute;right:20px;top:10px" type="primary" href="/static/批量发货模板.xlsx">下载批量发货的模版</el-link>
<el-button class="ml20" style="position:absolute;right:20px;top:10px" type="text" @click="downloadFile">下载批量发货的模版</el-button>
</div>
<div class="mt10" style="margin-left:90px">
成功<span style="color:#2f54eb">{{successCount}}</span>条,失败<span style="color:#F5222d">{{failedCount}}</span>
......@@ -74,6 +74,10 @@ export default {
this.visible = true;
},
methods: {
downloadFile() {
const prev = process.env['NODE_ENV'] === 'development' ? '' : '/welfare'; // eslint-disable-line
location.href = `${prev}/static/批量发货模板.xlsx`;
},
handleConfirm() {
this.visible = false;
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment