Commit ab0c0163 authored by 徐光星's avatar 徐光星

feat: 增加预览页面地址并新开页面打开

parent 7ea115fd
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
</template> </template>
<script> <script>
import editorApi from '@api/editor.api'; import editorApi from '@api/editor.api';
import config from '@/config/index';
export default { export default {
props: { props: {
value: { value: {
...@@ -37,7 +38,18 @@ ...@@ -37,7 +38,18 @@
align: 'center', align: 'center',
render: (h, params) => { render: (h, params) => {
console.log(params); console.log(params);
return h('span', this.records.length - params.index) return h('span', {
style: {
color: '#2d8cf0',
textDecoration: 'underline',
cursor: 'pointer'
},
on: {
'click': () => {
window.open(`${config.h5Host}/history/${params.row.id}`)
},
},
}, `v${this.records.length - params.index}`)
} }
}, },
{ {
......
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