feat: 解决编译问题,增加一键部署脚本。

This commit is contained in:
2025-06-26 15:44:44 +08:00
parent 4d66f8baa7
commit 357d0dcc15
17 changed files with 1547 additions and 30 deletions
+44
View File
@@ -0,0 +1,44 @@
<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>
+51
View File
@@ -0,0 +1,51 @@
<template>
<div class="success-container">
<a-result
status="success"
title="操作成功"
sub-title="操作已成功完成,您可以继续其他操作或返回首页"
>
<template #extra>
<a-space>
<a-button key="home" type="primary" @click="toHome"
>返回首页</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: 'ResultSuccess',
setup() {
const router = useRouter();
const toHome = () => {
router.push('/');
};
const back = () => {
router.back();
};
return {
toHome,
back,
};
},
});
</script>
<style scoped lang="less">
.success-container {
padding: 24px;
background-color: var(--color-bg-2);
height: 100%;
}
</style>