Add support for Android and iOS (#96)
Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
1 parent
5843f9c837
commit
af0c3db0f4
73 files changed
+2163
-21
No files matched your search
@@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<el-config-provider :locale="locale">
|
||||
<auth-panel v-if="authPopup" />
|
||||
<router-view />
|
||||
<el-tag v-if="isTest" size="large" class="tag" type="warning">{{ $t('index.button.testEnv') }}</el-tag>
|
||||
</el-config-provider>
|
||||
@@ -8,12 +9,14 @@
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElConfigProvider, ElTag } from 'element-plus';
|
||||
import AuthPanel from './components/common/AuthPanel.vue';
|
||||
import locale from 'element-plus/dist/locale/zh-cn.mjs';
|
||||
import { isTest } from '@/constants/endpoint';
|
||||
|
||||
export default defineComponent({
|
||||
components: {
|
||||
ElConfigProvider,
|
||||
AuthPanel,
|
||||
ElTag
|
||||
},
|
||||
data() {
|
||||
@@ -21,6 +24,11 @@ export default defineComponent({
|
||||
isTest,
|
||||
locale
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
authPopup() {
|
||||
return this.$store.state.auth.flow === 'popup' && this.$store.state.auth.visible;
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in new issue
Block a user