若依框架学习笔记-前端
参考:
关闭当前标签并刷新父页面:
close() { const obj = { path: "/system/organization",name:'Organization' }; this.$tab.closeOpenPage(obj).then(() => { // 执行结束的逻辑 this.$tab.refreshPage(obj); }) },
展示svg 自定义图片:
<svg-icon class-name="tree-icon" icon-class="tree-icon" />
表格展示图片:
<!-- 内链地址预览 -->
<el-table-column label="图片" align="center" prop="url" width="100" >
<template slot-scope="scope">
<image-preview :src="scope.row.url" :width="50" :height="50"/>
</template>
</el-table-column>
<!-- 外链地址预览 -->
<el-table-column label="图片" align="center" prop="url" width="100" >
<image-preview src="http://ruoyi.vip/images/logo.png" />
</el-table-column>
-------博客内容仅用于个人学习总结-------

浙公网安备 33010602011771号