Files
jinshen-website/app/components/shared/NotFoundResult.vue
R2m1liA 300266d32c
All checks were successful
deploy to server / build-and-deploy (push) Successful in 2m56s
refactor: 将各个界面的notfound提示提取为单独的组件NotFoundResult
2025-10-28 16:32:00 +08:00

34 lines
646 B
Vue

<template>
<el-result icon="warning" :title="title" :sub-title="subTitle">
<template #extra>
<el-button type="primary" @click="onBack">
{{ backText || $t('back') }}
</el-button>
</template>
</el-result>
</template>
<script setup lang="ts">
defineProps({
title: {
type: String,
required: true,
},
subTitle: {
type: String,
required: false,
default: '',
},
backText: {
type: String,
required: false,
default: '',
},
onBack: {
type: Function as () => unknown,
required: false,
default: undefined,
},
});
</script>