This commit is contained in:
lyt 2022-11-30 18:51:38 +08:00
commit bfecc6f6d2
2 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,7 @@
:label="item.title" :label="item.title"
> >
<template v-slot="scope"> <template v-slot="scope">
<template v-if="item.key === 'image'"> <template v-if="item.type === 'image'">
<img :src="scope.row[item.key]" :width="item.width" :height="item.height" /> <img :src="scope.row[item.key]" :width="item.width" :height="item.height" />
</template> </template>
<template v-else> <template v-else>

View File

@ -28,6 +28,7 @@ import { useRouter } from 'vue-router';
// //
const router = useRouter(); const router = useRouter();
//
const onGoHome = () => { const onGoHome = () => {
router.push('/'); router.push('/');
}; };