refactor(result): 移除i18n相关

This commit is contained in:
悠静萝莉 2024-09-03 02:05:16 +08:00
parent 85d5860c5e
commit 20f6c4bf19
No known key found for this signature in database
GPG Key ID: 4EDF1CA1CEA8EBCC
8 changed files with 22 additions and 36 deletions

View File

@ -1,6 +1,6 @@
<template>
<result title="403 Forbidden" :tip="$t('pages.result.403.tips')">
<t-button @click="() => $router.push('/')">{{ $t('pages.result.403.back') }}</t-button>
<result title="403 Forbidden" tip="抱歉您无权限访问此页面企业微信联系创建者xiaolaoshi">
<t-button @click="() => $router.push('/')">返回首页</t-button>
</result>
</template>
<script lang="ts">

View File

@ -1,6 +1,6 @@
<template>
<result title="404 Not Found" :tip="$t('pages.result.404.subtitle')" type="404">
<t-button @click="() => $router.push('/')">{{ $t('pages.result.404.back') }}</t-button>
<result title="404 Not Found" tip="抱歉,您访问的页面不存在" type="404">
<t-button @click="() => $router.push('/')">返回首页</t-button>
</result>
</template>

View File

@ -1,6 +1,6 @@
<template>
<result title="500 Internal Server Error" type="500" :tip="$t('pages.result.500.subtitle')">
<t-button @click="() => $router.push('/')">{{ $t('pages.result.500.back') }}</t-button>
<result title="500 Internal Server Error" type="500" tip="抱歉,服务器出错啦">
<t-button @click="() => $router.push('/')">返回首页</t-button>
</result>
</template>
<script lang="ts">

View File

@ -1,15 +1,9 @@
<template>
<result
:title="$t('pages.result.browserIncompatible.title')"
type="ie"
:tip="$t('pages.result.browserIncompatible.subtitle')"
>
<result title="浏览器不兼容" type="ie" tip="抱歉,您正在使用的浏览器版本过低,无法打开当前网页。">
<div class="result-slot-container">
<t-button class="result-button" @click="() => $router.push('/')">{{
$t('pages.result.browserIncompatible.back')
}}</t-button>
<t-button class="result-button" @click="() => $router.push('/')">返回首页</t-button>
<div class="recommend-container">
<div>{{ $t('pages.result.browserIncompatible.recommend') }}</div>
<div>TDesign Starter 推荐以下主流浏览器</div>
<div class="recommend-browser">
<div>
<thumbnail class="browser-icon" url="https://tdesign.gtimg.com/starter/result-page/chorme.png" />

View File

@ -1,13 +1,11 @@
<template>
<div class="result-success">
<t-icon class="result-success-icon" name="error-circle" />
<div class="result-success-title">{{ $t('pages.result.fail.title') }}</div>
<div class="result-success-describe">{{ $t('pages.result.fail.subtitle') }}</div>
<div class="result-success-title">项目创建失败</div>
<div class="result-success-describe">企业微信联系检查创建者权限或返回修改</div>
<div>
<t-button theme="default" @click="() => $router.push('/dashboard/base')">{{
$t('pages.result.fail.back')
}}</t-button>
<t-button @click="() => $router.push('/form/base')">{{ $t('pages.result.fail.modify') }} </t-button>
<t-button theme="default" @click="() => $router.push('/dashboard/base')">返回首页</t-button>
<t-button @click="() => $router.push('/form/base')">返回修改</t-button>
</div>
</div>
</template>

View File

@ -1,10 +1,6 @@
<template>
<result
:title="$t('pages.result.maintenance.title')"
:tip="$t('pages.result.maintenance.subtitle')"
type="maintenance"
>
<t-button theme="primary" @click="() => $router.push('/')">{{ $t('pages.result.maintenance.back') }}</t-button>
<result title="系统维护中" tip="系统维护中,请稍后再试" type="maintenance">
<t-button theme="primary" @click="() => $router.push('/')">返回首页</t-button>
</result>
</template>

View File

@ -1,8 +1,8 @@
<template>
<result :title="$t('pages.result.networkError.title')" :tip="$t('pages.result.networkError.subtitle')" type="wifi">
<result title="网络异常" tip="网络异常,请稍后再试" type="wifi">
<div>
<t-button theme="default" @click="() => $router.push('/')">{{ $t('pages.result.networkError.back') }}</t-button>
<t-button @click="() => $router.push('/')">{{ $t('pages.result.networkError.reload') }}</t-button>
<t-button theme="default" @click="() => $router.push('/')">返回首页</t-button>
<t-button @click="() => $router.push('/')">重新加载</t-button>
</div>
</result>
</template>

View File

@ -1,13 +1,11 @@
<template>
<div class="result-success">
<t-icon class="result-success-icon" name="check-circle" />
<div class="result-success-title">{{ $t('pages.result.success.title') }}</div>
<div class="result-success-describe">{{ $t('pages.result.success.subtitle') }}</div>
<div class="result-success-title">项目已创建成功</div>
<div class="result-success-describe">可以联系负责人分发应用</div>
<div>
<t-button theme="default" @click="() => $router.push('/detail/advanced')">
{{ $t('pages.result.success.progress') }}
</t-button>
<t-button @click="() => $router.push('/dashboard/base')"> {{ $t('pages.result.success.back') }} </t-button>
<t-button theme="default" @click="() => $router.push('/detail/advanced')"> 查看进度 </t-button>
<t-button @click="() => $router.push('/form/base')"> 返回首页 </t-button>
</div>
</div>
</template>