Files
leaser_front/src/views/result/error/index.vue
T

45 lines
914 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<div class="error-container">
<a-result
status="error"
title="操作失败"
sub-title="很抱歉,您的操作未能完成,请检查并重试"
>
<template #extra>
<a-space>
<a-button key="retry" type="primary">重试</a-button>
<a-button key="back" @click="back">返回上一页</a-button>
</a-space>
</template>
</a-result>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import { useRouter } from 'vue-router';
export default defineComponent({
name: 'ResultError',
setup() {
const router = useRouter();
const back = () => {
router.back();
};
return {
back,
};
},
});
</script>
<style scoped lang="less">
.error-container {
padding: 24px;
background-color: var(--color-bg-2);
height: 100%;
}
</style>