开发模式显示复制token

This commit is contained in:
不做码农 2023-05-09 19:54:10 +08:00
parent bce4daa01d
commit af5991d9a6

View File

@ -31,7 +31,7 @@
<el-dropdown-item command="setLayout"> <el-dropdown-item command="setLayout">
<span>{{ $t('layout.layoutSetting') }}</span> <span>{{ $t('layout.layoutSetting') }}</span>
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item command="copyToken"> <el-dropdown-item command="copyToken" v-if="dev">
<span>复制token</span> <span>复制token</span>
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item divided command="logout"> <el-dropdown-item divided command="logout">
@ -70,7 +70,7 @@ const sideTheme = computed(() => settingsStore.sideTheme)
function toggleSideBar() { function toggleSideBar() {
appStore.toggleSideBar() appStore.toggleSideBar()
} }
const dev = ref(import.meta.env.DEV)
function handleCommand(command) { function handleCommand(command) {
switch (command) { switch (command) {
case 'setLayout': case 'setLayout':