diff --git a/frontend/src/components/app-status/index.vue b/frontend/src/components/app-status/index.vue index 8195602f7..955e97166 100644 --- a/frontend/src/components/app-status/index.vue +++ b/frontend/src/components/app-status/index.vue @@ -17,7 +17,9 @@ {{ $t('commons.table.status') }}: - {{ data.status }} + + + @@ -50,6 +52,7 @@ import i18n from '@/lang'; import router from '@/routers'; import { ElMessage, ElMessageBox } from 'element-plus'; import { onMounted, reactive, ref } from 'vue'; +import Status from '@/components/status/index.vue'; const props = defineProps({ appKey: { diff --git a/frontend/src/components/status/index.vue b/frontend/src/components/status/index.vue new file mode 100644 index 000000000..7f3882517 --- /dev/null +++ b/frontend/src/components/status/index.vue @@ -0,0 +1,32 @@ + + + {{ $t('commons.status.' + status) }} + + + + diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index db170171f..b4ea2367d 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -128,6 +128,11 @@ export default { changePassword: '修改密码', logout: '退出登录', }, + status: { + running: '已启动', + stopped: '已停止', + error: '失败', + }, }, menu: { home: '概览', diff --git a/frontend/src/views/website/website/index.vue b/frontend/src/views/website/website/index.vue index 83933f194..803bedf33 100644 --- a/frontend/src/views/website/website/index.vue +++ b/frontend/src/views/website/website/index.vue @@ -27,7 +27,11 @@ {{ $t('website.' + row.type) }} - + + + + + @@ -74,6 +78,7 @@ import { WebSite } from '@/api/interface/website'; import AppStatus from '@/components/app-status/index.vue'; import NginxConfig from './nginx/index.vue'; import { dateFromat } from '@/utils/util'; +import Status from '@/components/status/index.vue'; import i18n from '@/lang'; import router from '@/routers';