Add test env tag and introduction (#95)

Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
GermeyandAceDataCloud authored and GitHub committed 2024-08-04 02:37:07 +00:00
1 parent 4e0c76e117
commit 5843f9c837
39 files changed
+668 -576

No files matched your search

+17 -4
View File
@@ -1,22 +1,35 @@
<template>
<el-config-provider :locale="locale">
<router-view />
<el-tag v-if="isTest" size="large" class="tag" type="warning">{{ $t('index.button.testEnv') }}</el-tag>
</el-config-provider>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import { ElConfigProvider } from 'element-plus';
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
import { ElConfigProvider, ElTag } from 'element-plus';
import locale from 'element-plus/dist/locale/zh-cn.mjs';
import { isTest } from '@/constants/endpoint';
export default defineComponent({
components: {
ElConfigProvider
ElConfigProvider,
ElTag
},
data() {
return {
locale: zhCn
isTest,
locale
};
}
});
</script>
<style lang="scss">
.tag {
position: fixed;
bottom: 10px;
right: 10px;
z-index: 10000;
}
</style>